Quantum 3 3.0.13

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

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

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

Public Member Functions

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

Public Attributes

FPVector2 Anchor
 
FPVector2 ConnectedAnchor
 
MapEntityId ConnectedEntity
 
FP LowerAngle
 
NullableFP MaxMotorTorque
 
FP MotorSpeed
 
bool StartDisabled = false
 
FP UpperAngle
 
bool UseAngleLimits = false
 
bool UseMotor = false
 
Int32 UserTag
 

Detailed Description

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

Member Function Documentation

◆ Materialize()

void Quantum.Prototypes.HingeJointConfig.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.