3 using SiliconStudio.Core.Mathematics;
4 using SiliconStudio.Paradox.Graphics;
17 Type = ColliderShapeTypes.Sphere;
22 var shape =
new BulletSharp.SphereShape(radius);
26 InternalShape =
new BulletSharp.Convex2DShape(shape) { LocalScaling =
new Vector3(1, 1, 0) };
30 InternalShape = shape;
34 DebugPrimitive = GeometricPrimitive.Sphere.New(PhysicsEngine.Singleton.DebugGraphicsDevice);
35 DebugPrimitiveScaling = Matrix.Scaling(radius * 2 * 1.01f);
44 public float Radius {
get;
private set; }
bool CreateDebugPrimitives
Set to true if you want the engine to create the debug primitives
SphereColliderShape(bool is2D, float radius)
Initializes a new instance of the SphereColliderShape class.
using SiliconStudio.Paradox. Physics
SiliconStudio.Core.Mathematics.Vector3 Vector3