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:
AzaezelX 2025-04-18 11:36:27 -05:00
parent 78a26b0108
commit 2d0bcbcf8d
4 changed files with 32 additions and 3 deletions

View file

@ -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)