#include <Locomotor.h>
Inherits MemoryPoolObject, and Snapshot.
Public Member Functions | |
| void | setPhysicsOptions (Object *obj) |
| void | locoUpdate_moveTowardsPosition (Object *obj, const Coord3D &goalPos, Real onPathDistToGoal, Real desiredSpeed, Bool *blocked) |
| void | locoUpdate_moveTowardsAngle (Object *obj, Real angle) |
| Bool | locoUpdate_maintainCurrentPosition (Object *obj) |
| Real | getMaxSpeedForCondition (BodyDamageType condition) const |
| get max speed given condition | |
| Real | getMaxTurnRate (BodyDamageType condition) const |
| get max turning rate given condition | |
| Real | getMaxAcceleration (BodyDamageType condition) const |
| get acceleration given condition | |
| Real | getMaxLift (BodyDamageType condition) const |
| get acceleration given condition | |
| Real | getBraking () const |
| get braking given condition | |
| Real | getPreferredHeight () const |
| Just return preferredheight, no damage consideration. | |
| void | restorePreferredHeightFromTemplate () |
| Real | getPreferredHeightDamping () const |
| LocomotorAppearance | getAppearance () const |
| LocomotorPriority | getMovePriority () const |
| LocomotorSurfaceTypeMask | getLegalSurfaces () const |
| AsciiString | getTemplateName () const |
| Real | getMinSpeed () const |
| Real | getAccelPitchLimit () const |
| Maximum amount we will pitch up or down under acceleration (including recoil.) | |
| Real | getDecelPitchLimit () const |
| Maximum amount we will pitch down under deceleration (including recoil.) | |
| Real | getBounceKick () const |
| How much simulating rough terrain "bounces" a wheel up. | |
| Real | getPitchStiffness () const |
| How stiff the springs are forward & back. | |
| Real | getRollStiffness () const |
| How stiff the springs are side to side. | |
| Real | getPitchDamping () const |
| How good the shock absorbers are. | |
| Real | getRollDamping () const |
| How good the shock absorbers are. | |
| Real | getPitchByZVelCoef () const |
| How much we pitch in response to speed. | |
| Real | getThrustRoll () const |
| Thrust roll. | |
| Real | getWobbleRate () const |
| how fast thrust things "wobble" | |
| Real | getMaxWobble () const |
| how much thrust things "wobble" | |
| Real | getMinWobble () const |
| how much thrust things "wobble" | |
| Real | getForwardVelCoef () const |
| How much we pitch in response to speed. | |
| Real | getLateralVelCoef () const |
| How much we roll in response to speed. | |
| Real | getForwardAccelCoef () const |
| How much we pitch in response to acceleration. | |
| Real | getLateralAccelCoef () const |
| How much we roll in response to acceleration. | |
| Real | getUniformAxialDamping () const |
| How much we roll in response to acceleration. | |
| Real | getTurnPivotOffset () const |
| Bool | getApply2DFrictionWhenAirborne () const |
| Bool | getIsDownhillOnly () const |
| Bool | getAllowMotiveForceWhileAirborne () const |
| Int | getAirborneTargetingHeight () const |
| Bool | getLocomotorWorksWhenDead () const |
| Bool | getStickToGround () const |
| Real | getCloseEnoughDist () const |
| Bool | isCloseEnoughDist3D () const |
| Bool | hasSuspension () const |
| Bool | canMoveBackwards () const |
| Real | getMaxWheelExtension () const |
| Real | getMaxWheelCompression () const |
| Real | getWheelTurnAngle () const |
| Real | getRudderCorrectionDegree () const |
| How much we roll in response to acceleration. | |
| Real | getRudderCorrectionRate () const |
| How much we roll in response to acceleration. | |
| Real | getElevatorCorrectionDegree () const |
| How much we roll in response to acceleration. | |
| Real | getElevatorCorrectionRate () const |
| How much we roll in response to acceleration. | |
| Real | getWanderWidthFactor () const |
| Real | getWanderAboutPointRadius () const |
| Real | calcMinTurnRadius (BodyDamageType condition, Real *timeToTravelThatDist) const |
| void | setMaxLift (Real lift) |
| this is handy for doing things like forcing helicopters to crash realistically: cut their lift. | |
| void | setMaxSpeed (Real speed) |
| void | setMaxAcceleration (Real accel) |
| void | setMaxBraking (Real braking) |
| void | setMaxTurnRate (Real turn) |
| void | setAllowInvalidPosition (Bool allow) |
| void | setCloseEnoughDist (Real dist) |
| void | setCloseEnoughDist3D (Bool setting) |
| Bool | isInvalidPositionAllowed () const |
| void | setPreferredHeight (Real height) |
| void | setUsePreciseZPos (Bool u) |
| void | setNoSlowDownAsApproachingDest (Bool u) |
| void | setUltraAccurate (Bool u) |
| Bool | isUltraAccurate () const |
| Bool | isMovingBackwards (void) const |
| void | startMove (void) |
| Indicates that a move is starting, primarily to reset the donut timer. jba. | |
Public Member Functions inherited from MemoryPoolObject | |
| void | deleteInstance () |
Public Member Functions inherited from Snapshot | |
| Snapshot (void) | |
| ~Snapshot (void) | |
Friends | |
| class | LocomotorStore |
Definition at line 221 of file Locomotor.h.
|
protected |
Definition at line 653 of file Locomotor.cpp.
|
protected |
Definition at line 678 of file Locomotor.cpp.
|
protected |
Definition at line 2046 of file Locomotor.cpp.
| Real Locomotor::calcMinTurnRadius | ( | BodyDamageType | condition, |
| Real * | timeToTravelThatDist ) const |
Definition at line 1591 of file Locomotor.cpp.
|
inline |
Definition at line 285 of file Locomotor.h.
|
protectedvirtual |
|
protected |
Definition at line 1524 of file Locomotor.cpp.
|
inline |
Maximum amount we will pitch up or down under acceleration (including recoil.)
Definition at line 257 of file Locomotor.h.
|
inline |
Definition at line 279 of file Locomotor.h.
|
inline |
Definition at line 278 of file Locomotor.h.
|
inline |
Definition at line 251 of file Locomotor.h.
|
inline |
Definition at line 276 of file Locomotor.h.
|
inline |
How much simulating rough terrain "bounces" a wheel up.
Definition at line 259 of file Locomotor.h.
| Real Locomotor::getBraking | ( | ) | const |
get braking given condition
Definition at line 844 of file Locomotor.cpp.
|
inline |
Definition at line 282 of file Locomotor.h.
|
inline |
Maximum amount we will pitch down under deceleration (including recoil.)
Definition at line 258 of file Locomotor.h.
|
inline |
How much we roll in response to acceleration.
Definition at line 293 of file Locomotor.h.
|
inline |
How much we roll in response to acceleration.
Definition at line 294 of file Locomotor.h.
|
inline |
How much we pitch in response to acceleration.
Definition at line 272 of file Locomotor.h.
|
inline |
How much we pitch in response to speed.
Definition at line 270 of file Locomotor.h.
|
inline |
Definition at line 277 of file Locomotor.h.
|
inline |
How much we roll in response to acceleration.
Definition at line 273 of file Locomotor.h.
|
inline |
How much we roll in response to speed.
Definition at line 271 of file Locomotor.h.
|
inline |
Definition at line 253 of file Locomotor.h.
|
inline |
Definition at line 280 of file Locomotor.h.
| Real Locomotor::getMaxAcceleration | ( | BodyDamageType | condition | ) | const |
get acceleration given condition
Definition at line 828 of file Locomotor.cpp.
| Real Locomotor::getMaxLift | ( | BodyDamageType | condition | ) | const |
get acceleration given condition
Definition at line 855 of file Locomotor.cpp.
| Real Locomotor::getMaxSpeedForCondition | ( | BodyDamageType | condition | ) | const |
get max speed given condition
Definition at line 792 of file Locomotor.cpp.
| Real Locomotor::getMaxTurnRate | ( | BodyDamageType | condition | ) | const |
get max turning rate given condition
Definition at line 808 of file Locomotor.cpp.
|
inline |
Definition at line 287 of file Locomotor.h.
|
inline |
Definition at line 286 of file Locomotor.h.
|
inline |
how much thrust things "wobble"
Definition at line 267 of file Locomotor.h.
|
inline |
Definition at line 256 of file Locomotor.h.
|
inline |
how much thrust things "wobble"
Definition at line 268 of file Locomotor.h.
|
inline |
Definition at line 252 of file Locomotor.h.
|
inline |
How much we pitch in response to speed.
Definition at line 264 of file Locomotor.h.
|
inline |
How good the shock absorbers are.
Definition at line 262 of file Locomotor.h.
|
inline |
How stiff the springs are forward & back.
Definition at line 260 of file Locomotor.h.
|
inline |
Just return preferredheight, no damage consideration.
Definition at line 248 of file Locomotor.h.
|
inline |
Definition at line 250 of file Locomotor.h.
|
inline |
How good the shock absorbers are.
Definition at line 263 of file Locomotor.h.
|
inline |
How stiff the springs are side to side.
Definition at line 261 of file Locomotor.h.
|
inline |
How much we roll in response to acceleration.
Definition at line 291 of file Locomotor.h.
|
inline |
How much we roll in response to acceleration.
Definition at line 292 of file Locomotor.h.
|
inline |
Definition at line 281 of file Locomotor.h.
Definition at line 2031 of file Locomotor.cpp.
|
inline |
Definition at line 255 of file Locomotor.h.
|
inline |
Thrust roll.
Definition at line 265 of file Locomotor.h.
|
inline |
Definition at line 275 of file Locomotor.h.
|
inline |
How much we roll in response to acceleration.
Definition at line 274 of file Locomotor.h.
|
inline |
Definition at line 298 of file Locomotor.h.
|
inline |
Definition at line 297 of file Locomotor.h.
|
inline |
Definition at line 288 of file Locomotor.h.
|
inline |
how fast thrust things "wobble"
Definition at line 266 of file Locomotor.h.
|
protected |
Definition at line 2220 of file Locomotor.cpp.
|
inline |
Definition at line 284 of file Locomotor.h.
|
inline |
Definition at line 283 of file Locomotor.h.
|
inline |
Definition at line 315 of file Locomotor.h.
|
inline |
Definition at line 360 of file Locomotor.h.
|
inline |
Definition at line 358 of file Locomotor.h.
|
protectedvirtual |
Kill any current (2D) velocity (but stay at current position, or as close as possible)
return true if we can maintain the position without being called every frame (eg, we are resting on the ground), false if not (eg, we are hovering or circling)
Definition at line 2436 of file Locomotor.cpp.
Definition at line 871 of file Locomotor.cpp.
| void Locomotor::locoUpdate_moveTowardsPosition | ( | Object * | obj, |
| const Coord3D & | goalPos, | ||
| Real | onPathDistToGoal, | ||
| Real | desiredSpeed, | ||
| Bool * | blocked ) |
Definition at line 953 of file Locomotor.cpp.
|
protected |
Definition at line 2551 of file Locomotor.cpp.
|
inlineprotected |
Definition at line 377 of file Locomotor.h.
|
protected |
Definition at line 2603 of file Locomotor.cpp.
|
protected |
Definition at line 2504 of file Locomotor.cpp.
|
inlineprotected |
Definition at line 379 of file Locomotor.h.
|
inlineprotected |
Definition at line 378 of file Locomotor.h.
|
protected |
Definition at line 2512 of file Locomotor.cpp.
|
protected |
Definition at line 1714 of file Locomotor.cpp.
|
protected |
Definition at line 1887 of file Locomotor.cpp.
|
protected |
Definition at line 1618 of file Locomotor.cpp.
|
protected |
|
protected |
Definition at line 2350 of file Locomotor.cpp.
|
protected |
Definition at line 1915 of file Locomotor.cpp.
|
protected |
Definition at line 1168 of file Locomotor.cpp.
|
protected |
Definition at line 1282 of file Locomotor.cpp.
|
protected |
Definition at line 1845 of file Locomotor.cpp.
Definition at line 706 of file Locomotor.cpp.
|
inline |
Definition at line 249 of file Locomotor.h.
|
protected |
Definition at line 2137 of file Locomotor.cpp.
|
protected |
Definition at line 925 of file Locomotor.cpp.
|
inline |
Definition at line 312 of file Locomotor.h.
|
inline |
Definition at line 313 of file Locomotor.h.
|
inline |
Definition at line 314 of file Locomotor.h.
|
inline |
Definition at line 309 of file Locomotor.h.
|
inline |
Definition at line 310 of file Locomotor.h.
|
inline |
this is handy for doing things like forcing helicopters to crash realistically: cut their lift.
Definition at line 303 of file Locomotor.h.
|
inline |
Definition at line 304 of file Locomotor.h.
|
inline |
Definition at line 311 of file Locomotor.h.
|
inline |
when off (the default), units slow down as they approach their target.
when on, units go full speed till the end, and may overshoot their target. this is useful mainly in some weird, temporary situations where we know we are going to follow this move with another one... or for carbombs.
Definition at line 344 of file Locomotor.h.
| void Locomotor::setPhysicsOptions | ( | Object * | obj | ) |
Definition at line 935 of file Locomotor.cpp.
|
inline |
Definition at line 317 of file Locomotor.h.
|
inline |
when off (the default), units do their normal stuff.
when on, we cheat and make very precise motion, regardless of loco settings. this is accomplished by cranking up the unit's turning rate, friction, lift (for airborne things), and possibly other things. This is useful mainly when doing maneuvers where precision is VITAL, such as airplane takeoff/landing.
For ground units, it also allows units to have a destination off of a pathfing grid.
Definition at line 357 of file Locomotor.h.
|
inline |
when off (the default), things get to adjust their z-pos as their loco says (in particular, airborne things tend to try to fly at a preferred height).
when on, they do their best to reach the specified zpos, even if it's not at their preferred height. this is used mainly for force missiles to swoop in on their target, and to force airplane takeoff/landing to go smoothly.
Definition at line 335 of file Locomotor.h.
| void Locomotor::startMove | ( | void | ) |
Indicates that a move is starting, primarily to reset the donut timer. jba.
Definition at line 785 of file Locomotor.cpp.
|
protectedvirtual |
Xfer method Version Info: 1: Initial version
Implements Snapshot.
Definition at line 746 of file Locomotor.cpp.
|
friend |
Definition at line 225 of file Locomotor.h.