MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / TestVehicle

Method TestVehicle

engine/Poseidon/World/Detection/Detector.cpp:816–824  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

814}
815
816bool Detector::TestVehicle(Vehicle* veh, Vector3Par f1, Vector3Par f2)
817{
818 if (veh && !veh->IsDammageDestroyed())
819 {
820 Vector3 pos = veh->WorldTransform().Position();
821 return IsInside(pos, f1, f2);
822 }
823 return false;
824}
825
826bool Detector::TestVehicle(AICenter* center, Vehicle* veh, Vector3Par f1, Vector3Par f2)
827{

Callers

nothing calls this directly

Calls 6

NTargetsMethod · 0.80
IsDammageDestroyedMethod · 0.45
PositionMethod · 0.45
WorldTransformMethod · 0.45
GetTargetMethod · 0.45

Tested by

no test coverage detected