3 using System.Diagnostics;
5 using SiliconStudio.Core.Mathematics;
6 using SiliconStudio.Paradox.Graphics;
18 Type = ColliderShapeTypes.Box;
21 HalfExtent = halfExtents;
23 InternalShape =
new BulletSharp.Box2DShape(halfExtents) { LocalScaling =
new Vector3(1, 1, 0) };
26 DebugPrimitive = GeometricPrimitive.Cube.New(PhysicsEngine.Singleton.DebugGraphicsDevice);
27 DebugPrimitiveScaling = Matrix.Scaling(
new Vector3(halfExtents.
X * 2, halfExtents.
Y * 2, 0.05f) * 1.01f);
36 public Vector2 HalfExtent {
get;
private set; }
bool CreateDebugPrimitives
Set to true if you want the engine to create the debug primitives
Represents a two dimensional mathematical vector.
Box2DColliderShape(Vector2 halfExtents)
Initializes a new instance of the Box2DColliderShape class.
float Y
The Y component of the vector.
float X
The X component of the vector.
using SiliconStudio.Paradox. Physics
SiliconStudio.Core.Mathematics.Vector3 Vector3