Warhorse ScripBind documentation
ContentsIndexHome
PreviousUpNext
CScriptBind_AI::DistanceToGenericShape Method
Syntax
C++
int DistanceToGenericShape(IFunctionHandler * pH);
Parameters 
Description 
position 
the position to check 
shapeName 
the name of the shape to test (returned by AI.GetEnclosingGenericShapeOfType) 
checkHeight 
(optional) if the flag is set the height of the shape is tested too. ! The test will check space between the shape.aabb.min.z and shape.aabb.min.z+shape.height. 

true if the point is inside the specified shape.

!

AI.DistanceToGenericShape(position, shapeName[, checkHeight])

!  

!  

!  

!  

DistanceToGenericShape

Copyright (c) 2012. All rights reserved.