mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-22 16:13:45 +00:00
behavioural change: feeding an AInfo an object with a 0 radius causes the class to fill in radius from that objects bounds box
also, vehicle direct hooks
This commit is contained in:
parent
78a26b0108
commit
2d0bcbcf8d
4 changed files with 32 additions and 3 deletions
|
|
@ -39,6 +39,8 @@ AIInfo::AIInfo(AIController* controller, SimObjectPtr<SceneObject> objIn, F32 ra
|
|||
mPosition = mLastPos = objIn->getPosition();
|
||||
mRadius = radIn;
|
||||
mPosSet = false;
|
||||
if (radIn == 0.0f)
|
||||
mRadius = mMax(objIn->getObjBox().len_x(), objIn->getObjBox().len_y()) * 0.5;
|
||||
};
|
||||
|
||||
AIInfo::AIInfo(AIController* controller, Point3F pointIn, F32 radIn)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue