Explorar o código

Resized default box collider to be the same size as the box primitive

BearishSun %!s(int64=9) %!d(string=hai) anos
pai
achega
0bb2ddcec1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Source/MBansheeEngine/Physics/BoxCollider.cs

+ 1 - 1
Source/MBansheeEngine/Physics/BoxCollider.cs

@@ -12,7 +12,7 @@ namespace BansheeEngine
     public sealed class BoxCollider : Collider
     public sealed class BoxCollider : Collider
     {
     {
         [SerializeField]
         [SerializeField]
-        private Vector3 extents = Vector3.One;
+        private Vector3 extents = new Vector3(0.5f, 0.5f, 0.5f);
 
 
         /// <summary>
         /// <summary>
         /// Extents (half size) of the geometry of the box.
         /// Extents (half size) of the geometry of the box.