HPL3/Amnesia: Rebirth/Scripting/Scripting Api/Body
< HPL3 | Amnesia: Rebirth | Scripting | Scripting Api
Jump to navigation
Jump to search
This page has been automatically generated, but it needs descriptions added to the various fields/functions in order to be complete. |
Have some helpful descriptions to add to this class? Edit this page and add your insight to the Wiki!
Contents
Summary
Return Type | Function and Description |
---|---|
void | Body_AddForce(const tString &in asBodyName, const cVector3f &in avForce, bool abLocalSpace) Adds force to the specified body |
void | Body_AddImpulse(const tString &in asBodyName, const cVector3f &in avImpulse, bool abLocalSpace) Adds an impulse to the specified body |
tString | Body_GetEntityName(const tString &in asBodyName) Gets the name of the entity the body belongs to |
void | Body_SetCollides(const tString &in asBodyName, bool abCollides) Sets whether a body collides with other bodies or not |
Function Detail
Body_AddForce
Body_AddImpulse
Body_GetEntityName
tString Body_GetEntityName(const tString &in asBodyName)
Gets the name of the entity the body belongs to
Parameters
- asBodyName (tString) —
Returns:
- tString—tString, Name of the entity.
Body_SetCollides
void Body_SetCollides(const tString &in asBodyName,
bool abCollides)
Sets whether a body collides with other bodies or not.
Parameters
- asBodyName (tString) —
- abCollides (bool) —
Returns:
- void