Warhorse ScripBind documentation
ContentsIndexHome
PreviousUpNext
CScriptBindPhysics::RayWorldIntersection Method
Syntax
C++
int RayWorldIntersection(IFunctionHandler* pH);
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 
(optional) Entity id to skip when checking for intersection. 
skipEntityId2 
(optional) Entity id to skip when checking for intersection. 

!

Physics.RayWorldIntersection( vPos, vDir, nMaxHits, iEntTypes [, skipEntityId1 [, skipEntityId2]] )

! Check if ray segment from src to dst intersect anything.!  

!  

!  

!  

!  

!  

 

Copyright (c) 2012. All rights reserved.