aiInfo getPosition now optionally takes a doCastray bool (off by default)

AIFlyingVehicleControllerData add flightfloor and cieling
resolvepitch from (portions of) the old aiflyingvehicle resource
no reversing for flyingvehicles, so bottom out resolvespeed at 0
This commit is contained in:
AzaezelX 2025-04-21 19:13:31 -05:00
parent 6200a6f1fb
commit 584093f48d
5 changed files with 96 additions and 21 deletions

View file

@ -36,7 +36,7 @@ struct AIInfo
Point3F mPosition, mLastPos;
bool mPosSet;
F32 mRadius;
Point3F getPosition() { return (mObj.isValid()) ? mObj->getPosition() : mPosition; }
Point3F getPosition(bool doCastray = false);
F32 getDist();
AIInfo() = delete;
AIInfo(AIController* controller);