mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-25 09:33:50 +00:00
if you've stopped moving on purpose, you're not stuck
This commit is contained in:
parent
f3ef698e89
commit
14a03dfc6c
2 changed files with 2 additions and 0 deletions
|
|
@ -322,6 +322,7 @@ void AIControllerData::resolveSpeed(AIController* obj, Point3F location, Move* m
|
|||
|
||||
void AIControllerData::resolveStuck(AIController* obj)
|
||||
{
|
||||
if (obj->mMovement.mMoveState == AIController::ModeStop) return;
|
||||
ShapeBase* sbo = dynamic_cast<ShapeBase*>(obj->getAIInfo()->mObj.getPointer());
|
||||
// Don't check for ai stuckness if animation during
|
||||
// an anim-clip effect override.
|
||||
|
|
|
|||
|
|
@ -155,6 +155,7 @@ void AINavigation::onReachDestination()
|
|||
else
|
||||
#endif
|
||||
getCtrl()->throwCallback("onReachDestination");
|
||||
getCtrl()->mMovement.mMoveState = AIController::ModeStop;
|
||||
}
|
||||
|
||||
bool AINavigation::setPathDestination(const Point3F& pos)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue