Barotrauma Server 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 ()
 

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

Definition at line 24 of file Limb.cs.

Constructor & Destructor Documentation

◆ LimbJoint() [1/2]

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

Definition at line 130 of file Limb.cs.

◆ LimbJoint() [2/2]

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

Definition at line 137 of file Limb.cs.

Member Function Documentation

◆ LoadParams()

void Barotrauma.LimbJoint.LoadParams ( )

Definition at line 156 of file Limb.cs.

Member Data Documentation

◆ IsSevered

bool Barotrauma.LimbJoint.IsSevered

Definition at line 26 of file Limb.cs.

◆ LimbA

readonly Limb Barotrauma.LimbJoint.LimbA

Definition at line 30 of file Limb.cs.

◆ Params

readonly JointParams Barotrauma.LimbJoint.Params

Definition at line 28 of file Limb.cs.

◆ ragdoll

readonly Ragdoll Barotrauma.LimbJoint.ragdoll

Definition at line 29 of file Limb.cs.

◆ revoluteJoint

readonly RevoluteJoint Barotrauma.LimbJoint.revoluteJoint

Definition at line 34 of file Limb.cs.

◆ weldJoint

readonly WeldJoint Barotrauma.LimbJoint.weldJoint

Definition at line 35 of file Limb.cs.

Property Documentation

◆ BodyA

Body Barotrauma.LimbJoint.BodyA
get

Definition at line 44 of file Limb.cs.

◆ BodyB

Body Barotrauma.LimbJoint.BodyB
get

Definition at line 46 of file Limb.cs.

◆ CanBeSevered

bool Barotrauma.LimbJoint.CanBeSevered
get

Definition at line 27 of file Limb.cs.

◆ Enabled

bool Barotrauma.LimbJoint.Enabled
getset

Definition at line 38 of file Limb.cs.

◆ Joint

Joint Barotrauma.LimbJoint.Joint
get

Definition at line 36 of file Limb.cs.

◆ JointAngle

float Barotrauma.LimbJoint.JointAngle
get

Definition at line 128 of file Limb.cs.

◆ LimitEnabled

bool? Barotrauma.LimbJoint.LimitEnabled
getset

Definition at line 92 of file Limb.cs.

◆ LocalAnchorA

Vector2? Barotrauma.LimbJoint.LocalAnchorA
getset

Definition at line 60 of file Limb.cs.

◆ LocalAnchorB

Vector2? Barotrauma.LimbJoint.LocalAnchorB
getset

Definition at line 76 of file Limb.cs.

◆ LowerLimit

float? Barotrauma.LimbJoint.LowerLimit
getset

Definition at line 104 of file Limb.cs.

◆ Scale

float Barotrauma.LimbJoint.Scale
get

Definition at line 32 of file Limb.cs.

◆ UpperLimit

float? Barotrauma.LimbJoint.UpperLimit
getset

Definition at line 116 of file Limb.cs.

◆ WorldAnchorA

Vector2 Barotrauma.LimbJoint.WorldAnchorA
getset

Definition at line 48 of file Limb.cs.

◆ WorldAnchorB

Vector2 Barotrauma.LimbJoint.WorldAnchorB
getset

Definition at line 54 of file Limb.cs.