Table of Contents

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 RigidPose

Pose of the compound child in the local space of the parent shape.

shapeIndex TypedIndex

Index of the shape used by the child.

Fields

LocalOrientation

Local orientation of the child in the compound.

public Quaternion LocalOrientation

Field Value

Quaternion

LocalPosition

Local position of the child in the compound.

public Vector3 LocalPosition

Field Value

Vector3

ShapeIndex

Index of the shape within whatever shape collection holds the compound's child shape data.

public TypedIndex ShapeIndex

Field Value

TypedIndex

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.