Struct CompoundChild
- Namespace
- BepuPhysics.Collidables
- Assembly
- BepuPhysics.dll
Shape and pose of a child within a compound shape.
public struct CompoundChild
- Inherited Members
Constructors
CompoundChild(in RigidPose, TypedIndex)
Creates a compound child.
public CompoundChild(in RigidPose pose, TypedIndex shapeIndex)
Parameters
pose
RigidPosePose of the compound child in the local space of the parent shape.
shapeIndex
TypedIndexIndex of the shape used by the child.
Fields
LocalOrientation
Local orientation of the child in the compound.
public Quaternion LocalOrientation
Field Value
LocalPosition
Local position of the child in the compound.
public Vector3 LocalPosition
Field Value
ShapeIndex
Index of the shape within whatever shape collection holds the compound's child shape data.
public TypedIndex ShapeIndex
Field Value
Methods
AsPose()
Returns a reference to the memory of the CompoundChild as a RigidPose.
public ref RigidPose AsPose()
Returns
- RigidPose
Reference to this compound child as a pose.