151 void move(
int dccID,
int Speed );
190 void moveUp(
int dccID,
int moveUpSpd );
228 int spawn(
int objID);
233 void doJump(
int dccID,
int force );
239 void setGravity(
int dccID,
float x,
float y,
float z );
262 void setPosition(
int dccID,
float x,
float y,
float z);
420 void followPath(
int dccID,
string pathName,
float speed);
619 void remove(
int dccID );
698 void setDimension(
int dccID,
float radius,
float height);
717 void setOffset(
int dccID,
float x,
float y,
float z);
733 float3
getOffset(
int dccID,
float x,
float y,
float z);
void setPositionString(int dccID, String xyz)
Sets the player position .
Definition: LUA_API_Controller.h:110
void setData_stepOffset(float val)
void setAdvancedCollision(int dccID, int state)
Set Advanced Collisions.
void getContactHit_WorldPos(int dccID)
Gets the last collision contacts hit information - WorldPos.
void setData_characterHeight(float val)
void doJump(int dccID, int force)
int spawn(int objID)
This commands add a dynamic character controller(DCC) to any scene entity.
void setQueryFlag(int dccID, int flag)
Sets the controllers query flag use for overlapping object query such as sensor and raycast...
void doStrafe(int dccID, int state)
int isDestinationReached(int dccID)
Poll to check if the controller has reached its destination.
void setData_characterWidth(float val)
void followPath(int dccID, string pathName, float speed)
follow a path simply by calling this function in an update loop. The movement will automatically be s...
void getContactHit_MotionDirection(int dccID)
Gets the last collision contacts hit information - MotionDirection.
void setData_shapeType(float val)
void getContactHit_WorldNormal(int dccID)
Gets the last collision contacts hit information - WorldNormal.
void setOffset(int dccID, float x, float y, float z)
Set the offset of the mesh that is moved by the capsule.
void moveUp(int dccID, int moveUpSpd)
Moves the controller up/down by the arg speed.
void setDimension(int dccID, float radius, float height)
Change the dimensions of a chatacter controller by passing radius and height.
void followPathPosition(int dccID, float x, float y, float z)
Override the default path follow and enter your own point to move to. In order for this to take effec...
void getCollisionFlag(int dccID)
A flag value that is returned from the system when this controller collides with an object...
void setCollisionFlag(int dccID, String flags)
A flag value that is returned from the system when this controller collides with an object...
void setMoveAdvanced(int dccID, int state)
Setting advanced move.
void setPathNodeIndex(int dccID, int nodeIndex)
Set the current node index the controller should head towards on the currently set path...
void setData_upDirectionIndex(float val)
void setData_Offset(float x, float y, float z)
void resetData()
Resets the controller setup date back to its default. This handled internally for you but the command...
Definition: LUA_API_States.h:28
string getFollowPathName(int dccID)
return the name of the path the controller is following
void invertGravity(int dccID, int state)
float3 getOffset(int dccID, float x, float y, float z)
Get the offset of the mesh that is moved by the capsule.
int isFollowingPath(int dccID)
return whether the controller is currently following a path.
void setData_flipDirection(bool state)
void setPathMaxTurn(int dccID, float maxTurn)
Set the maximum speed of the turning rate for this controller.
void setPathAccuracy(int dccID, float accuracy)
Set the accuracy of the path to follow. Lower numbers make the distance to each node before trigger s...
void enableGravity(int dccID, int state)
void getContactHit_MotionLength(int dccID)
Gets the last collision contacts hit information - motionLength.
void setMoveDirection(int dccID, float x, float y, float z)
void getContactHit_ID(int dccID)
Gets the last collision contacts hit information - Parent ID.
void setData_gravityY(float val)
int getBodyID(int dccID)
Get the Body ID of the object with a dynaminc character controller.
void setData_slopeLimit(float val)
void getPosition(int dccID)
void setData_skinWidth(float val)
void setJumpDownforce(int dccID, int force)
void move(int dccID, int Speed)
Moves the controller by the arg speed.
void setPosition(int dccID, float x, float y, float z)
Sets the player position .
void setGravity(int dccID, float x, float y, float z)