Quantum 3 3.0.14

Public Member Functions | Public Attributes | List of all members
Quantum.Shape3DConfig.CompoundShapeData3D Struct Reference

The settings of each shape in the compound of shapes list. More...

Public Member Functions

 CompoundShapeData3D (Shape3DConfig fromConfig)
 Constructor that initializes the instance with the values from a Shape3DConfig. More...
 
void CopyToConfig (Shape3DConfig dest)
 Copies the current instance's values to a Shape3DConfig instance. More...
 
Shape3D CreateShape (FrameBase f)
 Creates a Shape3D using the all the data set in the CompoundShapeData3D. This shape is inserted on the shape buffer of the compound. More...
 

Public Attributes

FPVector3 BoxExtents
 
readonly FP CapsuleExtent => (CapsuleHeight / FP._2) - CapsuleRadius
 The capsule extent is the distance from the center of the capsule to some of the spheres' centers. More...
 
FP CapsuleHeight
 
FP CapsuleRadius
 
bool IsSetFromSourceCollider
 This means an external collider component from this engine sets this component. More...
 
FPVector3 PositionOffset
 
FPVector3 RotationOffset
 
Shape3DType ShapeType
 
FP SphereRadius
 
UInt16 UserTag
 

Detailed Description

The settings of each shape in the compound of shapes list.

Constructor & Destructor Documentation

◆ CompoundShapeData3D()

Quantum.Shape3DConfig.CompoundShapeData3D.CompoundShapeData3D ( Shape3DConfig  fromConfig)
inline

Constructor that initializes the instance with the values from a Shape3DConfig.

Parameters
fromConfigShape config used as source

Member Function Documentation

◆ CopyToConfig()

void Quantum.Shape3DConfig.CompoundShapeData3D.CopyToConfig ( Shape3DConfig  dest)
inline

Copies the current instance's values to a Shape3DConfig instance.

Parameters
destShape config to receive the values

◆ CreateShape()

Shape3D Quantum.Shape3DConfig.CompoundShapeData3D.CreateShape ( FrameBase  f)
inline

Creates a Shape3D using the all the data set in the CompoundShapeData3D. This shape is inserted on the shape buffer of the compound.

Parameters
fThe frame reference.

Member Data Documentation

◆ CapsuleExtent

readonly FP Quantum.Shape3DConfig.CompoundShapeData3D.CapsuleExtent => (CapsuleHeight / FP._2) - CapsuleRadius

The capsule extent is the distance from the center of the capsule to some of the spheres' centers.

◆ IsSetFromSourceCollider

bool Quantum.Shape3DConfig.CompoundShapeData3D.IsSetFromSourceCollider

This means an external collider component from this engine sets this component.