Barotrauma Client Doc
Barotrauma.LimbJoint Class Reference

Public Member Functions

 LimbJoint (Limb limbA, Limb limbB, JointParams jointParams, Ragdoll ragdoll)
 
 LimbJoint (Limb limbA, Limb limbB, Vector2 anchor1, Vector2 anchor2, bool weld=false)
 
void LoadParams ()
 
void UpdateDeformations (float deltaTime)
 
void Draw (SpriteBatch spriteBatch)
 

Public Attributes

bool IsSevered
 
readonly JointParams Params
 
readonly Ragdoll ragdoll
 
readonly Limb LimbA
 
readonly RevoluteJoint revoluteJoint
 
readonly WeldJoint weldJoint
 

Properties

bool CanBeSevered [get]
 
float Scale [get]
 
Joint Joint [get]
 
bool Enabled [get, set]
 
Body BodyA [get]
 
Body BodyB [get]
 
Vector2 WorldAnchorA [get, set]
 
Vector2 WorldAnchorB [get, set]
 
Vector2? LocalAnchorA [get, set]
 
Vector2? LocalAnchorB [get, set]
 
bool? LimitEnabled [get, set]
 
float? LowerLimit [get, set]
 
float? UpperLimit [get, set]
 
float JointAngle [get]
 

Detailed Description

Constructor & Destructor Documentation

◆ LimbJoint() [1/2]

Barotrauma.LimbJoint.LimbJoint ( Limb  limbA,
Limb  limbB,
JointParams  jointParams,
Ragdoll  ragdoll 
)

◆ LimbJoint() [2/2]

Barotrauma.LimbJoint.LimbJoint ( Limb  limbA,
Limb  limbB,
Vector2  anchor1,
Vector2  anchor2,
bool  weld = false 
)

Member Function Documentation

◆ Draw()

void Barotrauma.LimbJoint.Draw ( SpriteBatch  spriteBatch)

◆ LoadParams()

void Barotrauma.LimbJoint.LoadParams ( )

◆ UpdateDeformations()

void Barotrauma.LimbJoint.UpdateDeformations ( float  deltaTime)

Member Data Documentation

◆ IsSevered

bool Barotrauma.LimbJoint.IsSevered

◆ LimbA

readonly Limb Barotrauma.LimbJoint.LimbA

◆ Params

readonly JointParams Barotrauma.LimbJoint.Params

◆ ragdoll

readonly Ragdoll Barotrauma.LimbJoint.ragdoll

◆ revoluteJoint

readonly RevoluteJoint Barotrauma.LimbJoint.revoluteJoint

◆ weldJoint

readonly WeldJoint Barotrauma.LimbJoint.weldJoint

Property Documentation

◆ BodyA

Body Barotrauma.LimbJoint.BodyA
get

◆ BodyB

Body Barotrauma.LimbJoint.BodyB
get

◆ CanBeSevered

bool Barotrauma.LimbJoint.CanBeSevered
get

◆ Enabled

bool Barotrauma.LimbJoint.Enabled
getset

◆ Joint

Joint Barotrauma.LimbJoint.Joint
get

◆ JointAngle

float Barotrauma.LimbJoint.JointAngle
get

◆ LimitEnabled

bool? Barotrauma.LimbJoint.LimitEnabled
getset

◆ LocalAnchorA

Vector2? Barotrauma.LimbJoint.LocalAnchorA
getset

◆ LocalAnchorB

Vector2? Barotrauma.LimbJoint.LocalAnchorB
getset

◆ LowerLimit

float? Barotrauma.LimbJoint.LowerLimit
getset

◆ Scale

float Barotrauma.LimbJoint.Scale
get

◆ UpperLimit

float? Barotrauma.LimbJoint.UpperLimit
getset

◆ WorldAnchorA

Vector2 Barotrauma.LimbJoint.WorldAnchorA
getset

◆ WorldAnchorB

Vector2 Barotrauma.LimbJoint.WorldAnchorB
getset