HPL3/SOMA/Scripting/Scripting Api/MoveObject
< HPL3 | SOMA | 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!
Summary
Return Type | Function and Description |
---|---|
void | MoveObject_SetState(const tString &in asName, float afState) Sets the state of the move object |
void | MoveObject_SetStateExt(const tString &in asName, float afState, float afAcc, float afMaxSpeed, float afSlowdownDist, bool abResetSpeed) Sets the state of the move object |
Function Detail
MoveObject_SetState
void MoveObject_SetState(const tString &in asName,
float afState)
Sets the state of the move object. This makes it move to a certain postion between
min or max pos (or outside of that is <0 or >1).
Parameters
- asName (tString) — name of move object
- afState (float) — true = locked - false = unlocked.
Returns:
- void
MoveObject_SetStateExt
void MoveObject_SetStateExt(const tString &in asName,
float afState,
float afAcc,
float afMaxSpeed,
float afSlowdownDist,
bool abResetSpeed)
Sets the state of the move object. This makes it move to a certain postion between
min or max pos (or outside of that is <0 or >1).
This will also set the speeed and acc at which the movement occurs.
Parameters
- asName (tString) — name of move object
- afState (float) — true = locked - false = unlocked.
- afAcc (float) — the acceleration of the movement
- afMaxSpeed (float) — the max speed.
- afSlowdownDist (float) — the distance from the state postion that it will start slowing to a halt.
- abResetSpeed (bool) — if the previous speed should be reset.
Returns:
- void