Class CompoundColliderShape
public class CompoundColliderShape : ColliderShape, IDisposable
- Inheritance
-
CompoundColliderShape
- Implements
- Inherited Members
- Extension Methods
Constructors
CompoundColliderShape()
Initializes a new instance of the CompoundColliderShape class.
public CompoundColliderShape()
Properties
Count
Gets the count.
public int Count { get; }
Property Value
- int
The count.
this[int]
Gets the ColliderShape with the specified i.
public ColliderShape this[int i] { get; }
Parameters
i
intThe i.
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 override Vector3 Scaling { get; set; }
Property Value
- Vector3
The scaling.
Methods
AddChildShape(ColliderShape)
Adds a child shape.
public void AddChildShape(ColliderShape shape)
Parameters
shape
ColliderShapeThe shape.
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public override void Dispose()
RemoveChildShape(ColliderShape)
Removes a child shape.
public void RemoveChildShape(ColliderShape shape)
Parameters
shape
ColliderShapeThe shape.