Class CompoundCollider
- Namespace
- Stride.BepuPhysics.Definitions.Colliders
- Assembly
- Stride.BepuPhysics.dll
Represents a compound collider that combines multiple child colliders into a single collider.
[DataContract]
public sealed class CompoundCollider : ICollider- Inheritance
- 
      objectCompoundCollider
- Implements
Constructors
CompoundCollider()
public CompoundCollider()Properties
Colliders
Gets the collection of child colliders that make up this compound collider.
[DataMember]
public IList<ColliderBase> Colliders { get; }Property Value
- IList<ColliderBase>
- A list of collider bases that form this compound shape. 
IsBig
public bool IsBig { get; }Property Value
Transforms
public int Transforms { get; }Property Value
Methods
GetLocalTransforms(CollidableComponent, Span<ShapeTransform>)
Fills in a span to transform AppendModel(List<BasicMeshBuffers>, ShapeCacheSystem, out object) from their neutral transform into the one specified by its collidable.
public void GetLocalTransforms(CollidableComponent collidable, Span<ShapeTransform> transforms)Parameters
- collidableCollidableComponent
- transformsSpan<ShapeTransform>
Remarks
You must still transform this further into worldspace by using the world position and rotation the collidable's entity.