Parcourir la source

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

BearishSun il y a 9 ans
Parent
commit
0bb2ddcec1
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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.