Parameters |
Description |
vPos |
Ray origin point. |
vDir |
Ray direction. |
nMaxHits |
Max number of hits to return, sorted in nearest to farest order. |
iEntTypes |
Physical Entity types bitmask, ray will only intersect with entities specified by this mask (ent_all,...). |
skipEntityId1 |
Entity id to skip when checking for intersection. |
skipEntityId2 |
Entity id to skip when checking for intersection. |
Syntax: Physics.RayWorldIntersection( Vec3 vPos,Vec3 vDir,int nMaxHits,int iEntTypes, [optional] skipEntityId1, [optional] skipEntityId2 )
Check if ray segment from src to dst intersect anything.
Copyright (c) 2012. All rights reserved.
|