Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_AIDangerReaction_Vehicle Class Reference
Inheritance diagram for SCR_AIDangerReaction_Vehicle:
SCR_AIDangerReaction

Protected Member Functions

bool VehicleIntersectsMyPath (notnull IEntity myVehicle, notnull IEntity otherVehicle)

Static Protected Member Functions

static bool MovingPointSphereIntersectionTest (vector p, vector v, float r, out float outT)

Detailed Description

Definition at line 2 of file SCR_AIDangerReaction_Vehicle.c.

Member Function Documentation

◆ MovingPointSphereIntersectionTest()

bool SCR_AIDangerReaction_Vehicle::MovingPointSphereIntersectionTest ( vector p,
vector v,
float r,
out float outT )
inlinestaticprotected

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.

Definition at line 159 of file SCR_AIDangerReaction_Vehicle.c.

◆ VehicleIntersectsMyPath()

bool SCR_AIDangerReaction_Vehicle::VehicleIntersectsMyPath ( notnull IEntity myVehicle,
notnull IEntity otherVehicle )
inlineprotected

Definition at line 78 of file SCR_AIDangerReaction_Vehicle.c.


The documentation for this class was generated from the following file: