Quantum 3 3.0.13

Public Member Functions | Public Attributes | List of all members
Quantum.Shape2DConfig.CompoundShapeData2D Struct Reference

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

Public Member Functions

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

Public Attributes

FPVector2 BoxExtents
 
readonly FP CapsuleExtent => FPMath.Max(CapsuleSize.Y, 0) / FP._2 - CapsuleRadius
 
readonly FP CapsuleRadius => FPMath.Max(CapsuleSize.X, 0) / FP._2
 
FPVector2 CapsuleSize
 
FP CircleRadius
 
FP EdgeExtent
 
bool IsSetFromSourceCollider
 This means an external collider component from this engine sets this component. More...
 
AssetRef< PolygonColliderPolygonCollider
 
FPVector2 PositionOffset
 
FP RotationOffset
 
Shape2DType ShapeType
 
UInt16 UserTag
 

Detailed Description

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

Constructor & Destructor Documentation

◆ CompoundShapeData2D()

Quantum.Shape2DConfig.CompoundShapeData2D.CompoundShapeData2D ( Shape2DConfig  fromConfig)
inline

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

Parameters
fromConfigShape config used as source

Member Function Documentation

◆ CopyToConfig()

void Quantum.Shape2DConfig.CompoundShapeData2D.CopyToConfig ( Shape2DConfig  toConfig)
inline

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

Parameters
toConfigShape config to receive the values

◆ CreateShape()

Shape2D Quantum.Shape2DConfig.CompoundShapeData2D.CreateShape ( FrameBase  f)
inline

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

Parameters
fThe frame reference.

Member Data Documentation

◆ IsSetFromSourceCollider

bool Quantum.Shape2DConfig.CompoundShapeData2D.IsSetFromSourceCollider

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