mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 00:24:40 +00:00
helper functions for AI: testing if an object is in line of sight (and optionally if it's enabled), if a point is clear, and if an object is within a given angular field of view (optionally specified beyond a stock 45 degrees, as well as optionally checking if the target is enabled)
This commit is contained in:
parent
7a517d3cb1
commit
9342115b1e
2 changed files with 118 additions and 20 deletions
|
|
@ -80,6 +80,9 @@ public:
|
|||
void setAimLocation( const Point3F &location );
|
||||
Point3F getAimLocation() const { return mAimLocation; }
|
||||
void clearAim();
|
||||
bool checkInLos(GameBase* target, bool _checkEnabled);
|
||||
bool checkLosClear(Point3F _pos);
|
||||
bool checkInFoV(GameBase* target, F32 camFov, bool _checkEnabled);
|
||||
|
||||
// Movement sets/gets
|
||||
void setMoveSpeed( const F32 speed );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue