|
static bool | MovingPointSphereIntersectionTest (vector p, vector v, float r, out float outT) |
| Tests intersection of a linearly moving point and a sphere located at 0,0,0.
|
|
◆ MovingPointSphereIntersectionTest()
static bool SCR_AIDangerReaction_Vehicle.MovingPointSphereIntersectionTest |
( |
vector |
p, |
|
|
vector |
v, |
|
|
float |
r, |
|
|
out float |
outT |
|
) |
| |
|
staticprotected |
Tests intersection of a linearly moving point and a sphere located at 0,0,0.
In general there are up to two intersection moments in this problem. Thus the function returns true if there will be an intersection, but only if intersection time is positive (in future). If two intersections are detected in future, it returns the nearest one. p - starting position of point v - velocity of point r - radius of sphere outT - output, time of collision.
◆ PerformReaction()
◆ VehicleIntersectsMyPath()
bool SCR_AIDangerReaction_Vehicle.VehicleIntersectsMyPath |
( |
notnull IEntity |
myVehicle, |
|
|
notnull IEntity |
otherVehicle |
|
) |
| |
|
protected |
The documentation for this interface was generated from the following file:
- Game/AI/Reaction/Danger/SCR_AIDangerReaction_Vehicle.c