3 using SiliconStudio.Core.Mathematics;
4 using SiliconStudio.Paradox.Graphics;
16 Type = ColliderShapeTypes.Box;
19 HalfExtents = halfExtents;
21 InternalShape =
new BulletSharp.BoxShape(halfExtents);
24 DebugPrimitive = GeometricPrimitive.Cube.New(PhysicsEngine.Singleton.DebugGraphicsDevice);
25 DebugPrimitiveScaling = Matrix.Scaling((halfExtents * 2.0f) * 1.01f);
34 public Vector3 HalfExtents {
get;
private set; }
bool CreateDebugPrimitives
Set to true if you want the engine to create the debug primitives
Represents a three dimensional mathematical vector.
BoxColliderShape(Vector3 halfExtents)
Initializes a new instance of the BoxColliderShape class.
using SiliconStudio.Paradox. Physics