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