Game Development Community

Doubt

by Scott Doerrfeld · in General Discussion · 04/19/2007 (5:08 am) · 2 replies

Hey all,

a small doubt, given a point, is it possible to find out if a bot/ shape is occupying that particular position given by the point,

Thanks

#1
04/19/2007 (5:43 am)
Hi Scott,
If you're comfortable working with the engine source code, there's the following function:

bool Box3F::isContained  (  const Point3F &  in_rContained   )  const [inline]  
   Check to see if a point is contained in this box.

In script, there's the containerFindFirst() function and its kin, containerFindNext(). Those will search for objects of a specific type (e.g., a bot) inside the area of a given box. The box can be as small as you need it to be.

Anyone know a quicker or easier way to do this?
#2
04/19/2007 (6:25 am)
This might help: Containers and Raycasts

InitContainerRadiusSearch looks like what you need.