Barotrauma Client Doc
|
Public Member Functions | |
SubmarineBody (Submarine sub, bool showErrorMessages=true) | |
void | Update (float deltaTime) |
void | ApplyForce (Vector2 force) |
void | SetPosition (Vector2 position) |
void | FlipX () |
bool | OnCollision (Fixture f1, Fixture f2, Contact contact) |
void | Remove () |
Public Attributes | |
readonly PhysicsBody | Body |
Static Public Attributes | |
const float | NeutralBallastPercentage = 0.07f |
const Category | CollidesWith |
Properties | |
List< Vector2 > | HullVertices [get] |
Rectangle | Borders [get] |
Extents of the solid items/structures (ones with a physics body) and hulls More... | |
Rectangle | VisibleBorders [get] |
Extents of all the visible items/structures/hulls (including ones without a physics body) More... | |
Vector2 | Velocity [get, set] |
Vector2 | Position [get] |
List< PosInfo > | PositionBuffer [get] |
Submarine | Submarine [get] |
Definition at line 17 of file BarotraumaShared/SharedSource/Map/SubmarineBody.cs.
Barotrauma.SubmarineBody.SubmarineBody | ( | Submarine | sub, |
bool | showErrorMessages = true |
||
) |
Definition at line 125 of file BarotraumaShared/SharedSource/Map/SubmarineBody.cs.
void Barotrauma.SubmarineBody.ApplyForce | ( | Vector2 | force | ) |
Definition at line 573 of file BarotraumaShared/SharedSource/Map/SubmarineBody.cs.
void Barotrauma.SubmarineBody.FlipX | ( | ) |
Definition at line 645 of file BarotraumaShared/SharedSource/Map/SubmarineBody.cs.
bool Barotrauma.SubmarineBody.OnCollision | ( | Fixture | f1, |
Fixture | f2, | ||
Contact | contact | ||
) |
Definition at line 655 of file BarotraumaShared/SharedSource/Map/SubmarineBody.cs.
void Barotrauma.SubmarineBody.Remove | ( | ) |
Definition at line 1059 of file BarotraumaShared/SharedSource/Map/SubmarineBody.cs.
void Barotrauma.SubmarineBody.SetPosition | ( | Vector2 | position | ) |
Definition at line 578 of file BarotraumaShared/SharedSource/Map/SubmarineBody.cs.
void Barotrauma.SubmarineBody.Update | ( | float | deltaTime | ) |
Definition at line 326 of file BarotraumaShared/SharedSource/Map/SubmarineBody.cs.
readonly PhysicsBody Barotrauma.SubmarineBody.Body |
Definition at line 55 of file BarotraumaShared/SharedSource/Map/SubmarineBody.cs.
|
static |
Definition at line 21 of file BarotraumaShared/SharedSource/Map/SubmarineBody.cs.
|
static |
Definition at line 19 of file BarotraumaShared/SharedSource/Map/SubmarineBody.cs.
|
get |
Extents of the solid items/structures (ones with a physics body) and hulls
Definition at line 85 of file BarotraumaShared/SharedSource/Map/SubmarineBody.cs.
|
get |
Definition at line 44 of file BarotraumaShared/SharedSource/Map/SubmarineBody.cs.
|
get |
Definition at line 110 of file BarotraumaShared/SharedSource/Map/SubmarineBody.cs.
|
get |
Definition at line 115 of file BarotraumaShared/SharedSource/Map/SubmarineBody.cs.
|
get |
Definition at line 120 of file BarotraumaShared/SharedSource/Map/SubmarineBody.cs.
|
getset |
Definition at line 100 of file BarotraumaShared/SharedSource/Map/SubmarineBody.cs.
|
get |
Extents of all the visible items/structures/hulls (including ones without a physics body)
Definition at line 94 of file BarotraumaShared/SharedSource/Map/SubmarineBody.cs.