Quantum 3 3.0.13

Public Member Functions | Public Attributes | List of all members
Quantum.Prototypes.SpringJointConfig Class Reference

Defines a prototype of a Joint struct of type JointType.SpringJoint. More...

Inheritance diagram for Quantum.Prototypes.SpringJointConfig:
Quantum.StructPrototype Quantum.IPrototype

Public Member Functions

Joint CreateJoint (FrameBase f)
 
Joint CreateJoint (FrameBase f, EntityRef jointEntityRef, EntityRef connectedAnchorEntityRef=default)
 
unsafe void Materialize (FrameBase frame, ref Joint joint, EntityRef jointEntityRef, EntityRef connectedAnchorEntityRef)
 
unsafe void Materialize (FrameBase frame, ref Joint joint, in PrototypeMaterializationContext context)
 Materializes this joint prototype into a joint instance. More...
 

Public Attributes

FPVector2 Anchor
 
bool AutoConfigureDistance = true
 
FPVector2 ConnectedAnchor
 
MapEntityId ConnectedEntity
 
FP DampingRatio
 
FP Distance
 
FP Frequency
 
bool StartDisabled = false
 
Int32 UserTag
 

Detailed Description

Defines a prototype of a Joint struct of type JointType.SpringJoint.

Member Function Documentation

◆ Materialize()

unsafe void Quantum.Prototypes.SpringJointConfig.Materialize ( FrameBase  frame,
ref Joint  joint,
in PrototypeMaterializationContext  context 
)
inline

Materializes this joint prototype into a joint instance.

Parameters
frameThe frame in which this prototype is being materialized.
jointThe Joint resultant of this materialization.
contextThe PrototypeMaterializationContext in which this prototype is being materialized.