Преглед изворни кода

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

BearishSun пре 9 година
родитељ
комит
0bb2ddcec1
1 измењених фајлова са 1 додато и 1 уклоњено
  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
     {
         [SerializeField]
-        private Vector3 extents = Vector3.One;
+        private Vector3 extents = new Vector3(0.5f, 0.5f, 0.5f);
 
         /// <summary>
         /// Extents (half size) of the geometry of the box.