Drag[en]gine Script Module DragonScript
1.21
|
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... | |
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 | getAdjustTimeVertical () |
Look up-down adjustment time in seconds. More... | |
void | setAdjustTimeVertical (float time) |
Set look up-down adjustment time in seconds. More... | |
float | getAdjustRangeVertical () |
Look up-down adjustment range. More... | |
void | setAdjustRangeVertical (float range) |
Set look up-down adjustment range. More... | |
float | getLookVerticalGoal () |
Looking up-down goal. More... | |
void | setLookVerticalGoal (float goal) |
Set looking up-down goal. More... | |
float | getLookVertical () |
Looking up-down value. More... | |
void | setLookVertical (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 | getAdjustTimeHorizontal () |
Look left-right adjustment time in seconds. More... | |
void | setAdjustTimeHorizontal (float time) |
Set look left-right adjustment time in seconds. More... | |
float | getAdjustRangeHorizontal () |
Look left-right adjustment range. More... | |
void | setAdjustRangeHorizontal (float range) |
Set look left-right adjustment range. More... | |
float | getLookHorizontalGoal () |
Look left-right goal. More... | |
void | setLookHorizontalGoal (float goal) |
Set look left-right goal. More... | |
float | getLookHorizontal () |
Look left-right value. More... | |
void | setLookHorizontal (float value) |
Set look left-right value. More... | |
bool | getTurnAdjustLookHorizontal () |
Adjust looking left-right while turning. More... | |
void | setTurnAdjustLookHorizontal (bool turnAdjust) |
Set if looking left-right is adjusted while turning. More... | |
float | getAnalogMovingVertical () |
Analog looking up-down. More... | |
void | setAnalogMovingVertical (float value) |
Set analog looking up-down. More... | |
Turning | |
float | getTurnHorizontal () |
Turn left-right value. More... | |
void | setTurnHorizontal (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... | |
float | 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 | getAdjustTimeAnalogMovingHorizontal () |
Analog looking left-right adjustment time in seconds. More... | |
void | setAdjustTimeAnalogMovingHorizontal (float time) |
Set analog looking left-right adjustment time in seconds. More... | |
float | getAdjustRangeAnalogMovingHorizontal () |
Analog looking left-right adjustment range. More... | |
void | setAdjustRangeAnalogMovingHorizontal (float range) |
Set analog looking left-right adjustment range. More... | |
float | getAnalogMovingHorizontalGoal () |
Analog looking left-right goal. More... | |
void | setAnalogMovingHorizontalGoal (float value) |
Set analog looking left-right goal. More... | |
float | getAnalogMovingHorizontal () |
Analog looking left-right. More... | |
void | setAnalogMovingHorizontal (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 () |
Relative 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... | |
Vector | getMovingDirectionVector () |
Movement direction vector 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 | getAdjustRangeStance () |
Adjustment range for stance. More... | |
void | setAdjustRangeStance (float time) |
Adjustment range for stance. 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... | |
LocomotionTilt | getTiltMode () |
Tilt mode. More... | |
void | setTiltMode (LocomotionTilt 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 | getTiltVertical () |
Current tilt up/down angle in degrees. More... | |
void | setTiltVertical (float tiltVertical) |
Set current tilt up/down angle in degrees. More... | |
float | getTiltVerticalGoal () |
Goal tilt up/down angle in degrees. More... | |
void | setTiltVerticalGoal (float tiltVertical) |
Set goal tilt up/down angle in degrees. More... | |
float | getAdjustTimeTiltVertical () |
Tilt up/down adjust time in seconds. More... | |
void | setAdjustTimeTiltVertical (float tiltVertical) |
Set tilt up/down afjust time in seconds. More... | |
float | getAdjustRangeTiltVertical () |
Tilt up/down adjust range. More... | |
void | setAdjustRangeTiltVertical (float tiltVertical) |
Set tilt up/down afjust range. 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 | getTiltHorizontal () |
Current tilt left/right angle in degrees. More... | |
void | setTiltHorizontal (float tiltHorizontal) |
Set current tilt left/right angle in degrees. More... | |
float | getTiltHorizontalGoal () |
Goal tilt left/right angle in degrees. More... | |
void | setTiltHorizontalGoal (float tiltHorizontal) |
Set goal tilt left/right angle in degrees. More... | |
float | getAdjustTimeTiltHorizontal () |
Tilt left/right adjust time in seconds. More... | |
void | setAdjustTimeTiltHorizontal (float tiltHorizontal) |
Set tilt left/right afjust time in seconds. More... | |
float | getAdjustRangeTiltHorizontal () |
Tilt left/right adjust range. More... | |
void | setAdjustRangeTiltHorizontal (float tiltHorizontal) |
Set tilt left/right afjust range. More... | |
float | getTiltOffset () |
Tilt offset in meters. More... | |
void | setTiltOffset (float offset) |
Set tilt offset in meters. More... | |
State control and frame update | |
void | cancelInput () |
Cancel input. More... | |
void | cancelMovement () |
Cancel Movement. More... | |
void | cancelMotion () |
Cancel motion. More... | |
void | cancelTurnInPlace () |
Cancel turning in-place. 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... | |
void | adjustOrientation (float angle) |
Adjust orientation. More... | |
Animator and collider control | |
void | addControllerMapping (AnimatorController controller, LocomotionAttribute attribute) |
Add or change controller mapping. More... | |
void | removeControllerMapping (AnimatorController 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 | |
void | readFromFile (FileReader reader) |
Read locomotion state from file reader. More... | |
void | writeToFile (FileWriter writer) |
Write locomotion state to file writer. More... | |
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:
This is a native class.
void Dragengine.Scenery.Locomotion.addControllerMapping | ( | AnimatorController | controller, |
LocomotionAttribute | attribute | ||
) |
Add or change controller mapping.
void Dragengine.Scenery.Locomotion.adjustOrientation | ( | float | angle | ) |
Adjust orientation.
Adjusts various orientation parameters to rotate by a given angle ensuring all relationships between the various parameters are still correct. Use this method if you want to manually rotate an actor while keeping the looking and movement direction intact. In particular this method adjust the following parameters without taking limitations into account:
void Dragengine.Scenery.Locomotion.applyStates | ( | ) |
Apply states without interpolation or smoothing.
void Dragengine.Scenery.Locomotion.cancelInput | ( | ) |
Cancel input.
Resets these parameters:
void Dragengine.Scenery.Locomotion.cancelMotion | ( | ) |
Cancel motion.
Includes cancelInput(), cancelMovement() and cancelTurnInPlace().
Resets these parameters:
void Dragengine.Scenery.Locomotion.cancelMovement | ( | ) |
Cancel Movement.
Includes cancelInput().
Resets these parameters:
void Dragengine.Scenery.Locomotion.cancelTurnInPlace | ( | ) |
Cancel turning in-place.
Resets these parameters:
void Dragengine.Scenery.Locomotion.forceBodyAdjustment | ( | ) |
Force body adjustment.
float Dragengine.Scenery.Locomotion.getAbsMovingSpeed | ( | ) |
Absolute movement speed.
Absolute value of getMovingSpeed() no matter if moving forward or backward.
float Dragengine.Scenery.Locomotion.getAdjustRangeAnalogMovingHorizontal | ( | ) |
Analog looking left-right adjustment range.
float Dragengine.Scenery.Locomotion.getAdjustRangeHorizontal | ( | ) |
Look left-right adjustment range.
float Dragengine.Scenery.Locomotion.getAdjustRangeLinearVelocity | ( | ) |
Linear velocity adjustment range in meters per second.
float Dragengine.Scenery.Locomotion.getAdjustRangeStance | ( | ) |
Adjustment range for stance.
float Dragengine.Scenery.Locomotion.getAdjustRangeTiltHorizontal | ( | ) |
Tilt left/right adjust range.
float Dragengine.Scenery.Locomotion.getAdjustRangeTiltVertical | ( | ) |
Tilt up/down adjust range.
float Dragengine.Scenery.Locomotion.getAdjustRangeVertical | ( | ) |
Look up-down adjustment range.
float Dragengine.Scenery.Locomotion.getAdjustTimeAnalogMovingHorizontal | ( | ) |
Analog looking left-right adjustment time in seconds.
float Dragengine.Scenery.Locomotion.getAdjustTimeHorizontal | ( | ) |
Look left-right adjustment time in seconds.
float Dragengine.Scenery.Locomotion.getAdjustTimeLinearVelocity | ( | ) |
Linear velocity adjustment time in seconds.
float Dragengine.Scenery.Locomotion.getAdjustTimeOrientation | ( | ) |
Orientation adjustment time in seconds.
float Dragengine.Scenery.Locomotion.getAdjustTimeStance | ( | ) |
Adjustment time for stance in seconds.
float Dragengine.Scenery.Locomotion.getAdjustTimeTiltHorizontal | ( | ) |
Tilt left/right adjust time in seconds.
float Dragengine.Scenery.Locomotion.getAdjustTimeTiltVertical | ( | ) |
Tilt up/down adjust time in seconds.
float Dragengine.Scenery.Locomotion.getAdjustTimeTurnIP | ( | ) |
Adjustment time in seconds for turning in-place.
float Dragengine.Scenery.Locomotion.getAdjustTimeVertical | ( | ) |
Look up-down adjustment time in seconds.
Collider Dragengine.Scenery.Locomotion.getAICollider | ( | ) |
AI collider to update or NULL if not used.
float Dragengine.Scenery.Locomotion.getAnalogMovingHorizontal | ( | ) |
Analog looking left-right.
float Dragengine.Scenery.Locomotion.getAnalogMovingHorizontalGoal | ( | ) |
Analog looking left-right goal.
float Dragengine.Scenery.Locomotion.getAnalogMovingSpeed | ( | ) |
Analog moving speed.
float Dragengine.Scenery.Locomotion.getAnalogMovingVertical | ( | ) |
Analog looking up-down.
Vector Dragengine.Scenery.Locomotion.getAngularVelocity | ( | ) |
Angular velocity of the actor turning.
bool Dragengine.Scenery.Locomotion.getCanTilt | ( | ) |
Determine if the actor can tilt the body.
bool Dragengine.Scenery.Locomotion.getCanTurn | ( | ) |
Determine if the actor can turn.
bool Dragengine.Scenery.Locomotion.getCanTurnInPlace | ( | ) |
Actor can turn in-place if looking beyond limits.
bool Dragengine.Scenery.Locomotion.getIsMoving | ( | ) |
Determine if the actor is moving direct or analog.
bool Dragengine.Scenery.Locomotion.getIsTurningIP | ( | ) |
Determine if the actor is turning in place.
float Dragengine.Scenery.Locomotion.getLimitLookDown | ( | ) |
Looking down limit angle in degrees.
float Dragengine.Scenery.Locomotion.getLimitLookLeft | ( | ) |
Looking left limit in degrees.
float Dragengine.Scenery.Locomotion.getLimitLookRight | ( | ) |
Looking right limit in degrees.
float Dragengine.Scenery.Locomotion.getLimitLookUp | ( | ) |
Looking up limit angle in degrees.
float Dragengine.Scenery.Locomotion.getLimitTiltDown | ( | ) |
Tilt down limit in degrees.
float Dragengine.Scenery.Locomotion.getLimitTiltLeft | ( | ) |
Tilt left limit in degrees.
float Dragengine.Scenery.Locomotion.getLimitTiltRight | ( | ) |
Tilt right limit in degrees.
float Dragengine.Scenery.Locomotion.getLimitTiltUp | ( | ) |
Tilt up limit in degrees.
float Dragengine.Scenery.Locomotion.getLimitTurnInPlaceLeft | ( | ) |
Looking left limit in degrees before turning in-place.
float Dragengine.Scenery.Locomotion.getLimitTurnInPlaceRight | ( | ) |
Looking right limit in degrees before turning in-place.
Vector Dragengine.Scenery.Locomotion.getLinearVelocity | ( | ) |
Linear velocity.
float Dragengine.Scenery.Locomotion.getLookHorizontal | ( | ) |
Look left-right value.
float Dragengine.Scenery.Locomotion.getLookHorizontalGoal | ( | ) |
Look left-right goal.
float Dragengine.Scenery.Locomotion.getLookVertical | ( | ) |
Looking up-down value.
float Dragengine.Scenery.Locomotion.getLookVerticalGoal | ( | ) |
Looking up-down goal.
float Dragengine.Scenery.Locomotion.getMovingDirection | ( | ) |
Movement direction relative to view orientation.
Vector Dragengine.Scenery.Locomotion.getMovingDirectionVector | ( | ) |
Movement direction vector relative to view orientation.
float Dragengine.Scenery.Locomotion.getMovingOrientation | ( | ) |
Movement orientation in world space.
float Dragengine.Scenery.Locomotion.getMovingSpeed | ( | ) |
Relative movement speed.
Speed is positive for moving forward and negative for moving backward.
float Dragengine.Scenery.Locomotion.getOrientation | ( | ) |
Actor orientation in world space.
Quaternion Dragengine.Scenery.Locomotion.getOrientationQuaternion | ( | ) |
Actor orientation as quaternion.
bool Dragengine.Scenery.Locomotion.getResetTimeTurnIP | ( | ) |
Determine if the turn in place time linked controllers have to be reset.
bool Dragengine.Scenery.Locomotion.getResetTimeWalk | ( | ) |
Determine if the walk/run time linked controllers have to be reset.
bool Dragengine.Scenery.Locomotion.getReverseTimeTurnIP | ( | ) |
Determine if the turn in place time linked controllers have to be reversed.
float Dragengine.Scenery.Locomotion.getStance | ( | ) |
Stance value.
float Dragengine.Scenery.Locomotion.getStanceGoal | ( | ) |
Stance goal value.
float Dragengine.Scenery.Locomotion.getTiltHorizontal | ( | ) |
Current tilt left/right angle in degrees.
float Dragengine.Scenery.Locomotion.getTiltHorizontalGoal | ( | ) |
Goal tilt left/right angle in degrees.
LocomotionTilt Dragengine.Scenery.Locomotion.getTiltMode | ( | ) |
Tilt mode.
float Dragengine.Scenery.Locomotion.getTiltOffset | ( | ) |
Tilt offset in meters.
float Dragengine.Scenery.Locomotion.getTiltVertical | ( | ) |
Current tilt up/down angle in degrees.
float Dragengine.Scenery.Locomotion.getTiltVerticalGoal | ( | ) |
Goal tilt up/down angle in degrees.
bool Dragengine.Scenery.Locomotion.getTurnAdjustLookHorizontal | ( | ) |
Adjust looking left-right while turning.
float Dragengine.Scenery.Locomotion.getTurnHorizontal | ( | ) |
Turn left-right value.
float Dragengine.Scenery.Locomotion.getTurningSpeed | ( | ) |
Turning speed in meters per second.
float Dragengine.Scenery.Locomotion.getTurnIP | ( | ) |
Turn in place value.
Collider Dragengine.Scenery.Locomotion.getUpdateAIColliderAngularVelocity | ( | ) |
Determine if the angular velocity of the AI collider is updated.
Locomotion Dragengine.Scenery.Locomotion.new | ( | ) |
Create locomotion.
void Dragengine.Scenery.Locomotion.readFromFile | ( | FileReader | reader | ) |
Read locomotion state from file reader.
Restores all parameters except:
void Dragengine.Scenery.Locomotion.removeAllControllerMappings | ( | ) |
Remove all controller mappings.
void Dragengine.Scenery.Locomotion.removeControllerMapping | ( | AnimatorController | controller | ) |
Remove controller mapping if present.
void Dragengine.Scenery.Locomotion.setAdjustRangeAnalogMovingHorizontal | ( | float | range | ) |
Set analog looking left-right adjustment range.
void Dragengine.Scenery.Locomotion.setAdjustRangeHorizontal | ( | float | range | ) |
Set look left-right adjustment range.
void Dragengine.Scenery.Locomotion.setAdjustRangeLinearVelocity | ( | float | range | ) |
Set linear velocity adjustment range in meters per second.
void Dragengine.Scenery.Locomotion.setAdjustRangeStance | ( | float | time | ) |
Adjustment range for stance.
void Dragengine.Scenery.Locomotion.setAdjustRangeTiltHorizontal | ( | float | tiltHorizontal | ) |
Set tilt left/right afjust range.
void Dragengine.Scenery.Locomotion.setAdjustRangeTiltVertical | ( | float | tiltVertical | ) |
Set tilt up/down afjust range.
void Dragengine.Scenery.Locomotion.setAdjustRangeVertical | ( | float | range | ) |
Set look up-down adjustment range.
void Dragengine.Scenery.Locomotion.setAdjustTimeAnalogMovingHorizontal | ( | float | time | ) |
Set analog looking left-right adjustment time in seconds.
void Dragengine.Scenery.Locomotion.setAdjustTimeHorizontal | ( | float | time | ) |
Set look left-right adjustment time in seconds.
void Dragengine.Scenery.Locomotion.setAdjustTimeLinearVelocity | ( | float | time | ) |
Set linear velocity adjustment time in seconds.
void Dragengine.Scenery.Locomotion.setAdjustTimeOrientation | ( | float | time | ) |
Set orientation adjustment time in seconds.
void Dragengine.Scenery.Locomotion.setAdjustTimeStance | ( | float | time | ) |
Adjustment time for stance in seconds.
void Dragengine.Scenery.Locomotion.setAdjustTimeTiltHorizontal | ( | float | tiltHorizontal | ) |
Set tilt left/right afjust time in seconds.
void Dragengine.Scenery.Locomotion.setAdjustTimeTiltVertical | ( | float | tiltVertical | ) |
Set tilt up/down afjust time in seconds.
void Dragengine.Scenery.Locomotion.setAdjustTimeTurnIP | ( | float | time | ) |
Set adjustment time in seconds for turning in-place.
void Dragengine.Scenery.Locomotion.setAdjustTimeVertical | ( | float | time | ) |
Set look up-down adjustment time in seconds.
void Dragengine.Scenery.Locomotion.setAICollider | ( | Collider | collider | ) |
Set AI collider to update or NULL if not used.
void Dragengine.Scenery.Locomotion.setAnalogMovingHorizontal | ( | float | value | ) |
Set analog looking left-right.
void Dragengine.Scenery.Locomotion.setAnalogMovingHorizontalGoal | ( | float | value | ) |
Set analog looking left-right goal.
void Dragengine.Scenery.Locomotion.setAnalogMovingSpeed | ( | float | value | ) |
Set analog moving speed.
void Dragengine.Scenery.Locomotion.setAnalogMovingVertical | ( | float | value | ) |
Set analog looking up-down.
void Dragengine.Scenery.Locomotion.setAngularVelocity | ( | Vector | velocity | ) |
Set angular velocity of the actor turning.
void Dragengine.Scenery.Locomotion.setCanTilt | ( | bool | canTilt | ) |
Set if the actor can tilt the body.
void Dragengine.Scenery.Locomotion.setCanTurn | ( | bool | canTurn | ) |
Set if the actor can turn.
void Dragengine.Scenery.Locomotion.setCanTurnInPlace | ( | bool | canTurnInPlace | ) |
Set if actor can turn in-place if looking beyond limits.
void Dragengine.Scenery.Locomotion.setCCTTiltBackLeft | ( | ColliderCollisionTest | collisionTest | ) |
Set back left collider collision test for tilt calculation or null if not set.
void Dragengine.Scenery.Locomotion.setCCTTiltBackRight | ( | ColliderCollisionTest | collisionTest | ) |
Set back right collider collision test for tilt calculation or NULL if not set.
void Dragengine.Scenery.Locomotion.setCCTTiltFrontLeft | ( | ColliderCollisionTest | collisionTest | ) |
Set front left collider collision test for tilt calculation or null if not set.
void Dragengine.Scenery.Locomotion.setCCTTiltFrontRight | ( | ColliderCollisionTest | collisionTest | ) |
Set front right collider collision test for tilt calculation or null if not set.
void Dragengine.Scenery.Locomotion.setCCTTiltSingle | ( | ColliderCollisionTest | collisionTest | ) |
Set single collider collision test for tilt calculation or null if not set.
void Dragengine.Scenery.Locomotion.setIsMoving | ( | bool | isMoving | ) |
Set determine if the actor is moving direct or analog.
void Dragengine.Scenery.Locomotion.setIsTurningIP | ( | bool | turnInPlace | ) |
Set if the actor is turning in place.
void Dragengine.Scenery.Locomotion.setLimitLookDown | ( | float | limit | ) |
Set looking down limit angle in degrees.
void Dragengine.Scenery.Locomotion.setLimitLookLeft | ( | float | limit | ) |
Set looking left limit in degrees.
void Dragengine.Scenery.Locomotion.setLimitLookRight | ( | float | limit | ) |
Set looking right limit in degrees.
void Dragengine.Scenery.Locomotion.setLimitLookUp | ( | float | limit | ) |
Set looking up limit angle in degrees.
void Dragengine.Scenery.Locomotion.setLimitTiltDown | ( | float | limit | ) |
Set tilt down limit in degrees.
void Dragengine.Scenery.Locomotion.setLimitTiltLeft | ( | float | limit | ) |
Set tilt left limit in degrees.
void Dragengine.Scenery.Locomotion.setLimitTiltRight | ( | float | limit | ) |
Set Tilt right limit in degrees.
void Dragengine.Scenery.Locomotion.setLimitTiltUp | ( | float | limit | ) |
Set tilt up limit in degrees.
void Dragengine.Scenery.Locomotion.setLimitTurnInPlaceLeft | ( | float | limit | ) |
Set looking left limit in degrees before turning in-place.
void Dragengine.Scenery.Locomotion.setLimitTurnInPlaceRight | ( | float | limit | ) |
Set looking right limit in degrees before turning in-place.
void Dragengine.Scenery.Locomotion.setLinearVelocity | ( | Vector | velocity | ) |
Set linear velocity.
void Dragengine.Scenery.Locomotion.setLookHorizontal | ( | float | value | ) |
Set look left-right value.
void Dragengine.Scenery.Locomotion.setLookHorizontalGoal | ( | float | goal | ) |
Set look left-right goal.
void Dragengine.Scenery.Locomotion.setLookVertical | ( | float | value | ) |
Looking up-down value.
void Dragengine.Scenery.Locomotion.setLookVerticalGoal | ( | float | goal | ) |
Set looking up-down goal.
void Dragengine.Scenery.Locomotion.setMovingDirection | ( | float | direction | ) |
Set movement direction relative to view orientation.
void Dragengine.Scenery.Locomotion.setMovingOrientation | ( | float | orientation | ) |
Set movement orientation in world space.
void Dragengine.Scenery.Locomotion.setMovingSpeed | ( | float | speed | ) |
Set movement speed.
For Non-FPS locomotion type this is negative for moving backward.
void Dragengine.Scenery.Locomotion.setOrientation | ( | float | orientation | ) |
Set actor orientation in world space.
void Dragengine.Scenery.Locomotion.setOrientationQuaternion | ( | Quaternion | orientation | ) |
Set actor orientation as quaternion.
void Dragengine.Scenery.Locomotion.setResetTimeTurnIP | ( | bool | reset | ) |
Set if the turn in place time linked controllers have to be reset.
void Dragengine.Scenery.Locomotion.setResetTimeWalk | ( | bool | reset | ) |
Set if the walk/run time linked controllers have to be reset.
void Dragengine.Scenery.Locomotion.setReverseTimeTurnIP | ( | bool | reverse | ) |
Set if the turn in place time linked controllers have to be reversed.
void Dragengine.Scenery.Locomotion.setStance | ( | float | stance | ) |
Set stance value.
void Dragengine.Scenery.Locomotion.setStanceGoal | ( | float | stance | ) |
Set stance goal value.
void Dragengine.Scenery.Locomotion.setTiltHorizontal | ( | float | tiltHorizontal | ) |
Set current tilt left/right angle in degrees.
void Dragengine.Scenery.Locomotion.setTiltHorizontalGoal | ( | float | tiltHorizontal | ) |
Set goal tilt left/right angle in degrees.
void Dragengine.Scenery.Locomotion.setTiltMode | ( | LocomotionTilt | mode | ) |
Set tilt mode.
void Dragengine.Scenery.Locomotion.setTiltOffset | ( | float | offset | ) |
Set tilt offset in meters.
void Dragengine.Scenery.Locomotion.setTiltVertical | ( | float | tiltVertical | ) |
Set current tilt up/down angle in degrees.
void Dragengine.Scenery.Locomotion.setTiltVerticalGoal | ( | float | tiltVertical | ) |
Set goal tilt up/down angle in degrees.
void Dragengine.Scenery.Locomotion.setTurnAdjustLookHorizontal | ( | bool | turnAdjust | ) |
Set if looking left-right is adjusted while turning.
void Dragengine.Scenery.Locomotion.setTurnHorizontal | ( | float | value | ) |
Set turn left-right value.
void Dragengine.Scenery.Locomotion.setTurningSpeed | ( | float | speed | ) |
Set turning speed in meters per second.
void Dragengine.Scenery.Locomotion.setTurnIP | ( | float | value | ) |
Set turn in place value.
void Dragengine.Scenery.Locomotion.setUpdateAIColliderAngularVelocity | ( | bool | updateAngularVelocity | ) |
Set if the angular velocity of the AI collider is updated.
void Dragengine.Scenery.Locomotion.updateAICollider | ( | ) |
Update AI collider linear and angular velocity.
void Dragengine.Scenery.Locomotion.updateAnimatorInstance | ( | float | elapsed | ) |
Update animator instance controllers if set with locomotion parameters.
void Dragengine.Scenery.Locomotion.updateIsMoving | ( | ) |
Update is moving.
void Dragengine.Scenery.Locomotion.updateLinearVelocity | ( | float | elapsed | ) |
Update linear velocity.
void Dragengine.Scenery.Locomotion.updateLocomotion | ( | float | elapsed | ) |
Update locomotion.
void Dragengine.Scenery.Locomotion.updateLooking | ( | float | elapsed | ) |
Update looking.
void Dragengine.Scenery.Locomotion.updateMovementDirection | ( | float | elapsed | ) |
Update moving direction for FPS locomotion.
void Dragengine.Scenery.Locomotion.updateOrientation | ( | float | elapsed | ) |
Update orientation.
void Dragengine.Scenery.Locomotion.updatePostLocomotion | ( | float | elapsed | ) |
Update locomotion after physics calculations.
void Dragengine.Scenery.Locomotion.updateStance | ( | float | elapsed | ) |
Update stance.
void Dragengine.Scenery.Locomotion.updateTilt | ( | float | elapsed | ) |
Update body tilting.
void Dragengine.Scenery.Locomotion.writeToFile | ( | FileWriter | writer | ) |
Write locomotion state to file writer.
Saves all parameters except: