Class CapsuleColliderShape
public class CapsuleColliderShape : ColliderShape, IDisposable- Inheritance
- 
      objectCapsuleColliderShape
- Implements
- Inherited Members
- Extension Methods
Constructors
CapsuleColliderShape(bool, float, float, ShapeOrientation)
Initializes a new instance of the CapsuleColliderShape class.
public CapsuleColliderShape(bool is2D, float radius, float length, ShapeOrientation orientation)Parameters
- is2Dbool
- if set to - true[is2 d].
- radiusfloat
- The radius. 
- lengthfloat
- The length of the capsule. 
- orientationShapeOrientation
- Up axis. 
Fields
Length
public readonly float LengthField Value
Orientation
public readonly ShapeOrientation OrientationField Value
Radius
public readonly float RadiusField Value
Properties
Scaling
Gets or sets the scaling. Make sure that you manually created and assigned an exclusive ColliderShape to the Collider otherwise since the engine shares shapes among many Colliders, all the colliders will be scaled. Please note that this scaling has no relation to the TransformComponent scaling.
public override Vector3 Scaling { get; set; }Property Value
- Vector3
- The scaling. 
Methods
CreateDebugPrimitive(GraphicsDevice)
public override MeshDraw CreateDebugPrimitive(GraphicsDevice device)Parameters
- deviceGraphicsDevice