Drag[en]gine Script Module DragonScript Script API  1.0
Locomotion Class Reference

Locomotion. More...

Inheritance diagram for Locomotion:

Classes

enum  eControllerAttributes
 
enum  eTiltModes
 

Public Member Functions

Constructors
Locomotion new ()
 Create locomotion. More...
 
Basic Parameters
bool getCanTurn ()
 Determine if the actor can turn. More...
 
void setCanTurn (bool canTurn)
 Set if the actor can turn. More...
 
bool getMoveApplyLookLeftRight ()
 Actor turns during moving due to looking left-right. More...
 
void setMoveApplyLookLeftRight (bool applyLookLeftRight)
 Set if actor turns during moving due to looking left-right. More...
 
Looking around
float getLimitLookUp ()
 Looking up limit angle in degrees. More...
 
void setLimitLookUp (float limit)
 Set looking up limit angle in degrees. More...
 
float getLimitLookDown ()
 Looking down limit angle in degrees. More...
 
void setLimitLookDown (float limit)
 Set looking down limit angle in degrees. More...
 
float getAdjustTimeUpDown ()
 Look up-down adjustment time in seconds. More...
 
void setAdjustTimeUpDown (float time)
 Set look up-down adjustment time in seconds. More...
 
float getLookUpDownGoal ()
 Looking up-down goal. More...
 
void setLookUpDownGoal (float goal)
 Set looking up-down goal. More...
 
float getLookUpDown ()
 Looking up-down value. More...
 
void setLookUpDown (float value)
 Looking up-down value. More...
 
float getLimitLookLeft ()
 Looking left limit in degrees. More...
 
void setLimitLookLeft (float limit)
 Set looking left limit in degrees. More...
 
float getLimitLookRight ()
 Looking right limit in degrees. More...
 
void setLimitLookRight (float limit)
 Set looking right limit in degrees. More...
 
float getAdjustTimeLeftRight ()
 Look left-right adjustment time in seconds. More...
 
void setAdjustTimeLeftRight (float time)
 Set look left-right adjustment time in seconds. More...
 
float getLookLeftRightGoal ()
 Look left-right goal. More...
 
void setLookLeftRightGoal (float goal)
 Set look left-right goal. More...
 
float getLookLeftRight ()
 Look left-right value. More...
 
void setLookLeftRight (float value)
 Set look left-right value. More...
 
bool getTurnAdjustLookLeftRight ()
 Adjust looking left-right while turning. More...
 
void setTurnAdjustLookLeftRight (bool turnAdjust)
 Set if looking left-right is adjusted while turning. More...
 
float getAnalogMovingUpDown ()
 Analog looking up-down. More...
 
void setAnalogMovingUpDown (float value)
 Set analog looking up-down. More...
 
Turning
float getTurnLeftRight ()
 Turn left-right value. More...
 
void setTurnLeftRight (float value)
 Set turn left-right value. More...
 
float getAdjustTimeOrientation ()
 Orientation adjustment time in seconds. More...
 
void setAdjustTimeOrientation (float time)
 Set orientation adjustment time in seconds. More...
 
float getOrientation ()
 Actor orientation in world space. More...
 
void setOrientation (float orientation)
 Set actor orientation in world space. More...
 
Quaternion getOrientationQuaternion ()
 Actor orientation as quaternion. More...
 
void setOrientationQuaternion (Quaternion orientation)
 Set actor orientation as quaternion. More...
 
float getTurningSpeed ()
 Turning speed in meters per second. More...
 
void setTurningSpeed (float speed)
 Set turning speed in meters per second. More...
 
Vector getAngularVelocity ()
 Angular velocity of the actor turning. More...
 
void setAngularVelocity (Vector velocity)
 Set angular velocity of the actor turning. More...
 
bool getIsTurningIP ()
 Determine if the actor is turning in place. More...
 
void setIsTurningIP (bool turnInPlace)
 Set if the actor is turning in place. More...
 
float getAdjustTimeTurnIP ()
 Adjustment time in seconds for turning in-place. More...
 
void setAdjustTimeTurnIP (float time)
 Set adjustment time in seconds for turning in-place. More...
 
float getTurnIP ()
 Turn in place value. More...
 
void setTurnIP (float value)
 Set turn in place value. More...
 
bool getResetTimeTurnIP ()
 Determine if the turn in place time linked controllers have to be reset. More...
 
void setResetTimeTurnIP (bool reset)
 Set if the turn in place time linked controllers have to be reset. More...
 
bool getReverseTimeTurnIP ()
 Determine if the turn in place time linked controllers have to be reversed. More...
 
void setReverseTimeTurnIP (bool reverse)
 Set if the turn in place time linked controllers have to be reversed. More...
 
bool getCanTurnInPlace ()
 Actor can turn in-place if looking beyond limits. More...
 
void setCanTurnInPlace (bool canTurnInPlace)
 Set if actor can turn in-place if looking beyond limits. More...
 
float getLimitTurnInPlaceLeft ()
 Looking left limit in degrees before turning in-place. More...
 
void setLimitTurnInPlaceLeft (float limit)
 Set looking left limit in degrees before turning in-place. More...
 
Locomotion getLimitTurnInPlaceRight ()
 Looking right limit in degrees before turning in-place. More...
 
void setLimitTurnInPlaceRight (float limit)
 Set looking right limit in degrees before turning in-place. More...
 
Movement
float getAdjustTimeAnalogMovingLeftRight ()
 Analog looking left-right adjustment time in seconds. More...
 
void setAdjustTimeAnalogMovingLeftRight (float time)
 Set analog looking left-right adjustment time in seconds. More...
 
float getAnalogMovingLeftRightGoal ()
 Analog looking left-right goal. More...
 
void setAnalogMovingLeftRightGoal (float value)
 Set analog looking left-right goal. More...
 
float getAnalogMovingLeftRight ()
 Analog looking left-right. More...
 
void setAnalogMovingLeftRight (float value)
 Set analog looking left-right. More...
 
float getAnalogMovingSpeed ()
 Analog moving speed. More...
 
void setAnalogMovingSpeed (float value)
 Set analog moving speed. More...
 
bool getIsMoving ()
 Determine if the actor is moving direct or analog. More...
 
void setIsMoving (bool isMoving)
 Set determine if the actor is moving direct or analog. More...
 
float getMovingSpeed ()
 Movement speed. More...
 
float getAbsMovingSpeed ()
 Absolute movement speed. More...
 
void setMovingSpeed (float speed)
 Set movement speed. More...
 
Vector getLinearVelocity ()
 Linear velocity. More...
 
void setLinearVelocity (Vector velocity)
 Set linear velocity. More...
 
float getAdjustTimeLinearVelocity ()
 Linear velocity adjustment time in seconds. More...
 
void setAdjustTimeLinearVelocity (float time)
 Set linear velocity adjustment time in seconds. More...
 
float getAdjustRangeLinearVelocity ()
 Linear velocity adjustment range in meters per second. More...
 
void setAdjustRangeLinearVelocity (float range)
 Set linear velocity adjustment range in meters per second. More...
 
float getMovingOrientation ()
 Movement orientation in world space. More...
 
void setMovingOrientation (float orientation)
 Set movement orientation in world space. More...
 
float getMovingDirection ()
 Movement direction relative to view orientation. More...
 
void setMovingDirection (float direction)
 Set movement direction relative to view orientation. More...
 
bool getResetTimeWalk ()
 Determine if the walk/run time linked controllers have to be reset. More...
 
void setResetTimeWalk (bool reset)
 Set if the walk/run time linked controllers have to be reset. More...
 
Stance
float getAdjustTimeStance ()
 Adjustment time for stance in seconds. More...
 
void setAdjustTimeStance (float time)
 Adjustment time for stance in seconds. More...
 
float getStance ()
 Stance value. More...
 
void setStance (float stance)
 Set stance value. More...
 
float getStanceGoal ()
 Stance goal value. More...
 
void setStanceGoal (float stance)
 Set stance goal value. More...
 
Body tilting
bool getCanTilt ()
 Determine if the actor can tilt the body. More...
 
void setCanTilt (bool canTilt)
 Set if the actor can tilt the body. More...
 
int getTiltMode ()
 Tilt mode. More...
 
void setTiltMode (int mode)
 Set tilt mode. More...
 
void setCCTTiltSingle (ColliderCollisionTest collisionTest)
 Set single collider collision test for tilt calculation or null if not set. More...
 
void setCCTTiltFrontLeft (ColliderCollisionTest collisionTest)
 Set front left collider collision test for tilt calculation or null if not set. More...
 
void setCCTTiltFrontRight (ColliderCollisionTest collisionTest)
 Set front right collider collision test for tilt calculation or null if not set. More...
 
void setCCTTiltBackLeft (ColliderCollisionTest collisionTest)
 Set back left collider collision test for tilt calculation or null if not set. More...
 
void setCCTTiltBackRight (ColliderCollisionTest collisionTest)
 Set back right collider collision test for tilt calculation or NULL if not set. More...
 
float getLimitTiltUp ()
 Tilt up limit in degrees. More...
 
void setLimitTiltUp (float limit)
 Set tilt up limit in degrees. More...
 
float getLimitTiltDown ()
 Tilt down limit in degrees. More...
 
void setLimitTiltDown (float limit)
 Set tilt down limit in degrees. More...
 
float getTiltUpDown ()
 Current tilt up/down angle in degrees. More...
 
void setTiltUpDown (float tiltUpDown)
 Set current tilt up/down angle in degrees. More...
 
float getTiltUpDownGoal ()
 Goal tilt up/down angle in degrees. More...
 
void setTiltUpDownGoal (float tiltUpDown)
 Set goal tilt up/down angle in degrees. More...
 
float getAdjustTimeTiltUpDown ()
 Tilt up/down adjust time in seconds. More...
 
void setAdjustTimeTiltUpDown (float tiltUpDown)
 Set tilt up/down afjust time in seconds. More...
 
float getLimitTiltLeft ()
 Tilt left limit in degrees. More...
 
void setLimitTiltLeft (float limit)
 Set tilt left limit in degrees. More...
 
float getLimitTiltRight ()
 Tilt right limit in degrees. More...
 
void setLimitTiltRight (float limit)
 Set Tilt right limit in degrees. More...
 
float getTiltLeftRight ()
 Current tilt left/right angle in degrees. More...
 
void setTiltLeftRight (float tiltLeftRight)
 Set current tilt left/right angle in degrees. More...
 
float getTiltLeftRightGoal ()
 Goal tilt left/right angle in degrees. More...
 
void setTiltLeftRightGoal (float tiltLeftRight)
 Set goal tilt left/right angle in degrees. More...
 
float getAdjustTimeTiltLeftRight ()
 Tilt left/right adjust time in seconds. More...
 
void setAdjustTimeTiltLeftRight (float tiltLeftRight)
 Set tilt left/right afjust time in seconds. More...
 
float getTiltOffset ()
 Tilt offset in meters. More...
 
void setTiltOffset (float offset)
 Set tilt offset in meters. More...
 
State control and frame update
void cancelMovement ()
 Cancel Movement. More...
 
void cancelInput ()
 Cancel inpurt. More...
 
void cancelMotion ()
 Cancel motion. More...
 
void forceBodyAdjustment ()
 Force body adjustment. More...
 
void updateLooking (float elapsed)
 Update looking. More...
 
void applyStates ()
 Apply states without interpolation or smoothing. More...
 
void updateLocomotion (float elapsed)
 Update locomotion. More...
 
void updateIsMoving ()
 Update is moving. More...
 
void updateOrientation (float elapsed)
 Update orientation. More...
 
void updateLinearVelocity (float elapsed)
 Update linear velocity. More...
 
void updateMovementDirection (float elapsed)
 Update moving direction for FPS locomotion. More...
 
void updateStance (float elapsed)
 Update stance. More...
 
void updatePostLocomotion (float elapsed)
 Update locomotion after physics calculations. More...
 
void updateTilt (float elapsed)
 Update body tilting. More...
 
void updateAnimatorInstance (float elapsed)
 Update animator instance controllers if set with locomotion parameters. More...
 
void updateAICollider ()
 Update AI collider linear and angular velocity. More...
 
Animator and collider control
AnimatorInstance getAnimatorInstance ()
 Animator instance to update or NULL if not used. More...
 
void setAnimatorInstance (AnimatorInstance instance)
 Set animator instance to update or NULL if not used. More...
 
void addControllerMapping (int controller, int attribute)
 Add or change controller mapping. More...
 
void removeControllerMapping (int controller)
 Remove controller mapping if present. More...
 
void removeAllControllerMappings ()
 Remove all controller mappings. More...
 
Collider getAICollider ()
 AI collider to update or NULL if not used. More...
 
void setAICollider (Collider collider)
 Set AI collider to update or NULL if not used. More...
 
Collider getUpdateAIColliderAngularVelocity ()
 Determine if the angular velocity of the AI collider is updated. More...
 
void setUpdateAIColliderAngularVelocity (bool updateAngularVelocity)
 Set if the angular velocity of the AI collider is updated. More...
 
File Handling
Vector readFromFile (FileReader reader)
 Read vector from a file reader. More...
 
void writeToFile (FileWriter writer)
 Write vector to a file writer. More...
 

Detailed Description

Locomotion.

Native class implementation of typical actor locomotion. Provides support to track locomotion state of various kinds of actors and optionally updating AnimatorInstance and Collider automatically. The native locomotion implementation has better performance than implementing the same functionality in pure scripts. You can subclass to add your game specific locomotion needs. Do not overload methods from "State control and frame update" if possible. Some of them are used internally by other calls. For performance reasons they do not use late binding calls. Your overloaded methods would only work if called from game scripts directly.

This locomotion implementation provides the following functionality out of the box:

  • Locomotion handling for natural, fps and vehicle type actors
  • Looking up/down and left/right using digital and analog input with smoothing
  • Turning using digital and analog input with smoothign for vehicle type locomotion
  • Forced actor orientation adjusting if looking too far left/right
  • Walk and running movement using digital and analog input with smoothing
  • Uprect and crouching stance using digital input with smoothing
  • Moving direction (strafing) using digital and analog input with smoothing
  • Body tilting calculation to fit actor to ground
  • Automatically updating AnimatorInstance mapping attributes to controllers
  • Automatically updating AI Collider velocities

This is a native class.

Author
Roland Pl├╝ss
Version
1.0
Date
2015

Member Function Documentation

◆ addControllerMapping()

void addControllerMapping ( int  controller,
int  attribute 
)

Add or change controller mapping.

◆ applyStates()

void applyStates ( )

Apply states without interpolation or smoothing.

◆ cancelInput()

void cancelInput ( )

Cancel inpurt.

◆ cancelMotion()

void cancelMotion ( )

Cancel motion.

◆ cancelMovement()

void cancelMovement ( )

Cancel Movement.

◆ forceBodyAdjustment()

void forceBodyAdjustment ( )

Force body adjustment.

◆ getAbsMovingSpeed()

float getAbsMovingSpeed ( )

Absolute movement speed.

◆ getAdjustRangeLinearVelocity()

float getAdjustRangeLinearVelocity ( )

Linear velocity adjustment range in meters per second.

◆ getAdjustTimeAnalogMovingLeftRight()

float getAdjustTimeAnalogMovingLeftRight ( )

Analog looking left-right adjustment time in seconds.

◆ getAdjustTimeLeftRight()

float getAdjustTimeLeftRight ( )

Look left-right adjustment time in seconds.

◆ getAdjustTimeLinearVelocity()

float getAdjustTimeLinearVelocity ( )

Linear velocity adjustment time in seconds.

◆ getAdjustTimeOrientation()

float getAdjustTimeOrientation ( )

Orientation adjustment time in seconds.

◆ getAdjustTimeStance()

float getAdjustTimeStance ( )

Adjustment time for stance in seconds.

◆ getAdjustTimeTiltLeftRight()

float getAdjustTimeTiltLeftRight ( )

Tilt left/right adjust time in seconds.

◆ getAdjustTimeTiltUpDown()

float getAdjustTimeTiltUpDown ( )

Tilt up/down adjust time in seconds.

◆ getAdjustTimeTurnIP()

float getAdjustTimeTurnIP ( )

Adjustment time in seconds for turning in-place.

◆ getAdjustTimeUpDown()

float getAdjustTimeUpDown ( )

Look up-down adjustment time in seconds.

◆ getAICollider()

Collider getAICollider ( )

AI collider to update or NULL if not used.

◆ getAnalogMovingLeftRight()

float getAnalogMovingLeftRight ( )

Analog looking left-right.

◆ getAnalogMovingLeftRightGoal()

float getAnalogMovingLeftRightGoal ( )

Analog looking left-right goal.

◆ getAnalogMovingSpeed()

float getAnalogMovingSpeed ( )

Analog moving speed.

◆ getAnalogMovingUpDown()

float getAnalogMovingUpDown ( )

Analog looking up-down.

◆ getAngularVelocity()

Vector getAngularVelocity ( )

Angular velocity of the actor turning.

◆ getAnimatorInstance()

AnimatorInstance getAnimatorInstance ( )

Animator instance to update or NULL if not used.

◆ getCanTilt()

bool getCanTilt ( )

Determine if the actor can tilt the body.

◆ getCanTurn()

bool getCanTurn ( )

Determine if the actor can turn.

◆ getCanTurnInPlace()

bool getCanTurnInPlace ( )

Actor can turn in-place if looking beyond limits.

◆ getIsMoving()

bool getIsMoving ( )

Determine if the actor is moving direct or analog.

◆ getIsTurningIP()

bool getIsTurningIP ( )

Determine if the actor is turning in place.

◆ getLimitLookDown()

float getLimitLookDown ( )

Looking down limit angle in degrees.

◆ getLimitLookLeft()

float getLimitLookLeft ( )

Looking left limit in degrees.

◆ getLimitLookRight()

float getLimitLookRight ( )

Looking right limit in degrees.

◆ getLimitLookUp()

float getLimitLookUp ( )

Looking up limit angle in degrees.

◆ getLimitTiltDown()

float getLimitTiltDown ( )

Tilt down limit in degrees.

◆ getLimitTiltLeft()

float getLimitTiltLeft ( )

Tilt left limit in degrees.

◆ getLimitTiltRight()

float getLimitTiltRight ( )

Tilt right limit in degrees.

◆ getLimitTiltUp()

float getLimitTiltUp ( )

Tilt up limit in degrees.

◆ getLimitTurnInPlaceLeft()

float getLimitTurnInPlaceLeft ( )

Looking left limit in degrees before turning in-place.

◆ getLimitTurnInPlaceRight()

Locomotion getLimitTurnInPlaceRight ( )

Looking right limit in degrees before turning in-place.

◆ getLinearVelocity()

Vector getLinearVelocity ( )

Linear velocity.

◆ getLookLeftRight()

float getLookLeftRight ( )

Look left-right value.

◆ getLookLeftRightGoal()

float getLookLeftRightGoal ( )

Look left-right goal.

◆ getLookUpDown()

float getLookUpDown ( )

Looking up-down value.

◆ getLookUpDownGoal()

float getLookUpDownGoal ( )

Looking up-down goal.

◆ getMoveApplyLookLeftRight()

bool getMoveApplyLookLeftRight ( )

Actor turns during moving due to looking left-right.

◆ getMovingDirection()

float getMovingDirection ( )

Movement direction relative to view orientation.

◆ getMovingOrientation()

float getMovingOrientation ( )

Movement orientation in world space.

◆ getMovingSpeed()

float getMovingSpeed ( )

Movement speed.

For Non-FPS locomotion type this is negative for moving backwards.

◆ getOrientation()

float getOrientation ( )

Actor orientation in world space.

◆ getOrientationQuaternion()

Quaternion getOrientationQuaternion ( )

Actor orientation as quaternion.

◆ getResetTimeTurnIP()

bool getResetTimeTurnIP ( )

Determine if the turn in place time linked controllers have to be reset.

◆ getResetTimeWalk()

bool getResetTimeWalk ( )

Determine if the walk/run time linked controllers have to be reset.

◆ getReverseTimeTurnIP()

bool getReverseTimeTurnIP ( )

Determine if the turn in place time linked controllers have to be reversed.

◆ getStance()

float getStance ( )

Stance value.

◆ getStanceGoal()

float getStanceGoal ( )

Stance goal value.

◆ getTiltLeftRight()

float getTiltLeftRight ( )

Current tilt left/right angle in degrees.

◆ getTiltLeftRightGoal()

float getTiltLeftRightGoal ( )

Goal tilt left/right angle in degrees.

◆ getTiltMode()

int getTiltMode ( )

Tilt mode.

◆ getTiltOffset()

float getTiltOffset ( )

Tilt offset in meters.

◆ getTiltUpDown()

float getTiltUpDown ( )

Current tilt up/down angle in degrees.

◆ getTiltUpDownGoal()

float getTiltUpDownGoal ( )

Goal tilt up/down angle in degrees.

◆ getTurnAdjustLookLeftRight()

bool getTurnAdjustLookLeftRight ( )

Adjust looking left-right while turning.

◆ getTurningSpeed()

float getTurningSpeed ( )

Turning speed in meters per second.

◆ getTurnIP()

float getTurnIP ( )

Turn in place value.

◆ getTurnLeftRight()

float getTurnLeftRight ( )

Turn left-right value.

◆ getUpdateAIColliderAngularVelocity()

Collider getUpdateAIColliderAngularVelocity ( )

Determine if the angular velocity of the AI collider is updated.

◆ new()

Locomotion new ( )

Create locomotion.

◆ readFromFile()

Vector readFromFile ( FileReader  reader)

Read vector from a file reader.

◆ removeAllControllerMappings()

void removeAllControllerMappings ( )

Remove all controller mappings.

◆ removeControllerMapping()

void removeControllerMapping ( int  controller)

Remove controller mapping if present.

◆ setAdjustRangeLinearVelocity()

void setAdjustRangeLinearVelocity ( float  range)

Set linear velocity adjustment range in meters per second.

◆ setAdjustTimeAnalogMovingLeftRight()

void setAdjustTimeAnalogMovingLeftRight ( float  time)

Set analog looking left-right adjustment time in seconds.

◆ setAdjustTimeLeftRight()

void setAdjustTimeLeftRight ( float  time)

Set look left-right adjustment time in seconds.

◆ setAdjustTimeLinearVelocity()

void setAdjustTimeLinearVelocity ( float  time)

Set linear velocity adjustment time in seconds.

◆ setAdjustTimeOrientation()

void setAdjustTimeOrientation ( float  time)

Set orientation adjustment time in seconds.

◆ setAdjustTimeStance()

void setAdjustTimeStance ( float  time)

Adjustment time for stance in seconds.

◆ setAdjustTimeTiltLeftRight()

void setAdjustTimeTiltLeftRight ( float  tiltLeftRight)

Set tilt left/right afjust time in seconds.

◆ setAdjustTimeTiltUpDown()

void setAdjustTimeTiltUpDown ( float  tiltUpDown)

Set tilt up/down afjust time in seconds.

◆ setAdjustTimeTurnIP()

void setAdjustTimeTurnIP ( float  time)

Set adjustment time in seconds for turning in-place.

◆ setAdjustTimeUpDown()

void setAdjustTimeUpDown ( float  time)

Set look up-down adjustment time in seconds.

◆ setAICollider()

void setAICollider ( Collider  collider)

Set AI collider to update or NULL if not used.

◆ setAnalogMovingLeftRight()

void setAnalogMovingLeftRight ( float  value)

Set analog looking left-right.

◆ setAnalogMovingLeftRightGoal()

void setAnalogMovingLeftRightGoal ( float  value)

Set analog looking left-right goal.

◆ setAnalogMovingSpeed()

void setAnalogMovingSpeed ( float  value)

Set analog moving speed.

◆ setAnalogMovingUpDown()

void setAnalogMovingUpDown ( float  value)

Set analog looking up-down.

◆ setAngularVelocity()

void setAngularVelocity ( Vector  velocity)

Set angular velocity of the actor turning.

◆ setAnimatorInstance()

void setAnimatorInstance ( AnimatorInstance  instance)

Set animator instance to update or NULL if not used.

◆ setCanTilt()

void setCanTilt ( bool  canTilt)

Set if the actor can tilt the body.

◆ setCanTurn()

void setCanTurn ( bool  canTurn)

Set if the actor can turn.

◆ setCanTurnInPlace()

void setCanTurnInPlace ( bool  canTurnInPlace)

Set if actor can turn in-place if looking beyond limits.

◆ setCCTTiltBackLeft()

void setCCTTiltBackLeft ( ColliderCollisionTest  collisionTest)

Set back left collider collision test for tilt calculation or null if not set.

◆ setCCTTiltBackRight()

void setCCTTiltBackRight ( ColliderCollisionTest  collisionTest)

Set back right collider collision test for tilt calculation or NULL if not set.

◆ setCCTTiltFrontLeft()

void setCCTTiltFrontLeft ( ColliderCollisionTest  collisionTest)

Set front left collider collision test for tilt calculation or null if not set.

◆ setCCTTiltFrontRight()

void setCCTTiltFrontRight ( ColliderCollisionTest  collisionTest)

Set front right collider collision test for tilt calculation or null if not set.

◆ setCCTTiltSingle()

void setCCTTiltSingle ( ColliderCollisionTest  collisionTest)

Set single collider collision test for tilt calculation or null if not set.

◆ setIsMoving()

void setIsMoving ( bool  isMoving)

Set determine if the actor is moving direct or analog.

◆ setIsTurningIP()

void setIsTurningIP ( bool  turnInPlace)

Set if the actor is turning in place.

◆ setLimitLookDown()

void setLimitLookDown ( float  limit)

Set looking down limit angle in degrees.

◆ setLimitLookLeft()

void setLimitLookLeft ( float  limit)

Set looking left limit in degrees.

◆ setLimitLookRight()

void setLimitLookRight ( float  limit)

Set looking right limit in degrees.

◆ setLimitLookUp()

void setLimitLookUp ( float  limit)

Set looking up limit angle in degrees.

◆ setLimitTiltDown()

void setLimitTiltDown ( float  limit)

Set tilt down limit in degrees.

◆ setLimitTiltLeft()

void setLimitTiltLeft ( float  limit)

Set tilt left limit in degrees.

◆ setLimitTiltRight()

void setLimitTiltRight ( float  limit)

Set Tilt right limit in degrees.

◆ setLimitTiltUp()

void setLimitTiltUp ( float  limit)

Set tilt up limit in degrees.

◆ setLimitTurnInPlaceLeft()

void setLimitTurnInPlaceLeft ( float  limit)

Set looking left limit in degrees before turning in-place.

◆ setLimitTurnInPlaceRight()

void setLimitTurnInPlaceRight ( float  limit)

Set looking right limit in degrees before turning in-place.

◆ setLinearVelocity()

void setLinearVelocity ( Vector  velocity)

Set linear velocity.

◆ setLookLeftRight()

void setLookLeftRight ( float  value)

Set look left-right value.

◆ setLookLeftRightGoal()

void setLookLeftRightGoal ( float  goal)

Set look left-right goal.

◆ setLookUpDown()

void setLookUpDown ( float  value)

Looking up-down value.

◆ setLookUpDownGoal()

void setLookUpDownGoal ( float  goal)

Set looking up-down goal.

◆ setMoveApplyLookLeftRight()

void setMoveApplyLookLeftRight ( bool  applyLookLeftRight)

Set if actor turns during moving due to looking left-right.

◆ setMovingDirection()

void setMovingDirection ( float  direction)

Set movement direction relative to view orientation.

◆ setMovingOrientation()

void setMovingOrientation ( float  orientation)

Set movement orientation in world space.

◆ setMovingSpeed()

void setMovingSpeed ( float  speed)

Set movement speed.

For Non-FPS locomotion type this is negative for moving backwards.

◆ setOrientation()

void setOrientation ( float  orientation)

Set actor orientation in world space.

◆ setOrientationQuaternion()

void setOrientationQuaternion ( Quaternion  orientation)

Set actor orientation as quaternion.

◆ setResetTimeTurnIP()

void setResetTimeTurnIP ( bool  reset)

Set if the turn in place time linked controllers have to be reset.

◆ setResetTimeWalk()

void setResetTimeWalk ( bool  reset)

Set if the walk/run time linked controllers have to be reset.

◆ setReverseTimeTurnIP()

void setReverseTimeTurnIP ( bool  reverse)

Set if the turn in place time linked controllers have to be reversed.

◆ setStance()

void setStance ( float  stance)

Set stance value.

◆ setStanceGoal()

void setStanceGoal ( float  stance)

Set stance goal value.

◆ setTiltLeftRight()

void setTiltLeftRight ( float  tiltLeftRight)

Set current tilt left/right angle in degrees.

◆ setTiltLeftRightGoal()

void setTiltLeftRightGoal ( float  tiltLeftRight)

Set goal tilt left/right angle in degrees.

◆ setTiltMode()

void setTiltMode ( int  mode)

Set tilt mode.

◆ setTiltOffset()

void setTiltOffset ( float  offset)

Set tilt offset in meters.

◆ setTiltUpDown()

void setTiltUpDown ( float  tiltUpDown)

Set current tilt up/down angle in degrees.

◆ setTiltUpDownGoal()

void setTiltUpDownGoal ( float  tiltUpDown)

Set goal tilt up/down angle in degrees.

◆ setTurnAdjustLookLeftRight()

void setTurnAdjustLookLeftRight ( bool  turnAdjust)

Set if looking left-right is adjusted while turning.

◆ setTurningSpeed()

void setTurningSpeed ( float  speed)

Set turning speed in meters per second.

◆ setTurnIP()

void setTurnIP ( float  value)

Set turn in place value.

◆ setTurnLeftRight()

void setTurnLeftRight ( float  value)

Set turn left-right value.

◆ setUpdateAIColliderAngularVelocity()

void setUpdateAIColliderAngularVelocity ( bool  updateAngularVelocity)

Set if the angular velocity of the AI collider is updated.

◆ updateAICollider()

void updateAICollider ( )

Update AI collider linear and angular velocity.

◆ updateAnimatorInstance()

void updateAnimatorInstance ( float  elapsed)

Update animator instance controllers if set with locomotion parameters.

◆ updateIsMoving()

void updateIsMoving ( )

Update is moving.

◆ updateLinearVelocity()

void updateLinearVelocity ( float  elapsed)

Update linear velocity.

◆ updateLocomotion()

void updateLocomotion ( float  elapsed)

Update locomotion.

◆ updateLooking()

void updateLooking ( float  elapsed)

Update looking.

◆ updateMovementDirection()

void updateMovementDirection ( float  elapsed)

Update moving direction for FPS locomotion.

◆ updateOrientation()

void updateOrientation ( float  elapsed)

Update orientation.

◆ updatePostLocomotion()

void updatePostLocomotion ( float  elapsed)

Update locomotion after physics calculations.

◆ updateStance()

void updateStance ( float  elapsed)

Update stance.

◆ updateTilt()

void updateTilt ( float  elapsed)

Update body tilting.

◆ writeToFile()

void writeToFile ( FileWriter  writer)

Write vector to a file writer.


The documentation for this class was generated from the following file: