Barotrauma Client Doc
Barotrauma.PosInfo Class Reference
Inheritance diagram for Barotrauma.PosInfo:
Barotrauma.CharacterStateInfo

Public Member Functions

 PosInfo (Vector2 pos, float? rotation, Vector2 linearVelocity, float? angularVelocity, float time)
 
 PosInfo (Vector2 pos, float? rotation, Vector2 linearVelocity, float? angularVelocity, UInt16 ID)
 
void TransformOutToInside (Submarine submarine)
 
void TransformInToOutside ()
 
void Translate (Vector2 posAmount, float rotationAmount)
 

Public Attributes

readonly float Timestamp
 
readonly UInt16 ID
 

Protected Member Functions

 PosInfo (Vector2 pos, float? rotation, Vector2 linearVelocity, float? angularVelocity, UInt16 ID, float time)
 

Properties

Vector2 Position [get]
 
float? Rotation [get]
 
Vector2 LinearVelocity [get]
 
float? AngularVelocity [get]
 

Detailed Description

Constructor & Destructor Documentation

◆ PosInfo() [1/3]

Barotrauma.PosInfo.PosInfo ( Vector2  pos,
float?  rotation,
Vector2  linearVelocity,
float?  angularVelocity,
float  time 
)

◆ PosInfo() [2/3]

Barotrauma.PosInfo.PosInfo ( Vector2  pos,
float?  rotation,
Vector2  linearVelocity,
float?  angularVelocity,
UInt16  ID 
)

◆ PosInfo() [3/3]

Barotrauma.PosInfo.PosInfo ( Vector2  pos,
float?  rotation,
Vector2  linearVelocity,
float?  angularVelocity,
UInt16  ID,
float  time 
)
protected

Member Function Documentation

◆ TransformInToOutside()

void Barotrauma.PosInfo.TransformInToOutside ( )

◆ TransformOutToInside()

void Barotrauma.PosInfo.TransformOutToInside ( Submarine  submarine)

◆ Translate()

void Barotrauma.PosInfo.Translate ( Vector2  posAmount,
float  rotationAmount 
)

Member Data Documentation

◆ ID

readonly UInt16 Barotrauma.PosInfo.ID

◆ Timestamp

readonly float Barotrauma.PosInfo.Timestamp

Property Documentation

◆ AngularVelocity

float? Barotrauma.PosInfo.AngularVelocity
get

◆ LinearVelocity

Vector2 Barotrauma.PosInfo.LinearVelocity
get

◆ Position

Vector2 Barotrauma.PosInfo.Position
get

◆ Rotation

float? Barotrauma.PosInfo.Rotation
get