staticmesh root

 Function Name  Parameter  Return  Explain
getTexture None number  
setTexture number None  
getMaterial None material  
setMaterial material None  
getStyle None dword  
setStyle dword None  
intersectRay ray ray
boolean bCalcDis, bIgnoreBack
1). boolean bInter
2). boolean bInter
     number fDistance
     number nTriIdx

 

Detects the intersection between a static mesh and a ray.

Parameters

ray :  a ray
bCalcDis : whether calculate distance from ray's start to point of intersection.
bIgnoreBack : whether ignore backward faces of the static mesh.

Return Values

1. If bCalcDis is false, returns boolean indicate whether intersected.


2. If bCalcDis is true, returns:
bInter : whether intersected
fDistance : the distance between ray's start and point of intersection.
nTriIdx : The index of intersected triangle.

 
intersectSegment segment seg
boolean bCalcDis, bIgnoreBack
1). boolean bInter
2). boolean bInter
     number fDistance
     number nTriIdx
Detects the intersection between a static mesh and a segment.