GetPointRayCastPos
From GECK
A function added by the JIP NVSE Plugin.
Contents
Description
Returns the position of the point of collision
Warning
The calculation is not the fastest thing on the planet, and spamming a bunch of casts every frame might be not the healthiest thing for Fallout New Vegas performance
Syntax
(float) GetPointRayCastPos fOriginX:float fOriginY:float fOriginZ:float fRotX:float fRotY:float fXOut:float fYOut:float fZOut:float iColliderFlag:int
Example
positionOfCollisionXYZ = GetPointRayCastPos fOriginX, fOriginY, fOriginZ, fRotX, fRotY, fXOut, fYOut, fZOut, iColliderFlag
Notes
- Uses GECK's Collision flag
- The flags can be located in Collision Flags