Class ColliderShape
public class ColliderShape : IDisposable
  - Inheritance
 - 
      objectColliderShape
 
- Implements
 
- Derived
 
- Extension Methods
 
Fields
DebugPrimitiveMatrix
public Matrix DebugPrimitiveMatrix
  Field Value
DebugScaling
protected const float DebugScaling = 1
  Field Value
LocalOffset
The local offset
public Vector3 LocalOffset
  Field Value
LocalRotation
The local rotation
public Quaternion LocalRotation
  Field Value
NegativeCenterMatrix
Gets the negative center matrix.
public Matrix NegativeCenterMatrix
  Field Value
- Matrix
 The negative center matrix.
PositiveCenterMatrix
Gets the positive center matrix.
public Matrix PositiveCenterMatrix
  Field Value
- Matrix
 The positive center matrix.
cachedScaling
protected Vector3 cachedScaling
  Field Value
Properties
Description
public IColliderShapeDesc Description { get; }
  Property Value
Is2D
Gets a value indicating whether the collider shape is 2D.
public bool Is2D { get; }
  Property Value
- bool
 trueif [is2 d]; otherwise,false.
Margin
public float Margin { get; set; }
  Property Value
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 virtual Vector3 Scaling { get; set; }
  Property Value
- Vector3
 The scaling.
Type
Gets or sets the type.
public ColliderShapeTypes Type { get; protected set; }
  Property Value
- ColliderShapeTypes
 The type.
Methods
CreateDebugPrimitive(GraphicsDevice)
public virtual MeshDraw CreateDebugPrimitive(GraphicsDevice device)
  Parameters
deviceGraphicsDevice
Returns
CreateUpdatableDebugPrimitive(GraphicsDevice)
public virtual IDebugPrimitive CreateUpdatableDebugPrimitive(GraphicsDevice device)
  Parameters
deviceGraphicsDevice
Returns
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public virtual void Dispose()
  UpdateDebugPrimitive(CommandList, IDebugPrimitive)
public virtual void UpdateDebugPrimitive(CommandList commandList, IDebugPrimitive debugPrimitive)
  Parameters
commandListCommandListdebugPrimitiveIDebugPrimitive
UpdateLocalTransformations()
Updates the local transformations, required if you change LocalOffset and/or LocalRotation.
public virtual void UpdateLocalTransformations()