mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 08:34:40 +00:00
getmovedestination, set/get speed, targetting script commands
todo: need to see why getAIController().setAimLocation("10 10 0"); seems to get into an onreachdestination+stuck callback loop
This commit is contained in:
parent
f00b8e1ae0
commit
f3ef698e89
6 changed files with 187 additions and 3 deletions
|
|
@ -85,6 +85,8 @@ public:
|
|||
{
|
||||
MoveState mMoveState;
|
||||
F32 mMoveSpeed = 1.0;
|
||||
void setMoveSpeed(F32 speed) { mMoveSpeed = speed; };
|
||||
F32 getMoveSpeed() { return mMoveSpeed; };
|
||||
bool mMoveSlowdown; // Slowdown as we near the destination
|
||||
Point3F mLastLocation; // For stuck check
|
||||
S32 mMoveStuckTestCountdown; // The current countdown until at AI starts to check if it is stuck
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue