Thread: Object.remove()
View Single Post
  #21  
Old 06-09-2005, 03:51 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Hi,

There is a way to have invisible objects trigger intersections. Instead of setting the visiblity of the object, disable rendering on the object. Example:
Code:
#Don't render the object, but allow it to be susceptible to collisions and picking
object.disable(viz.RENDERING)
Also, why do you perform an intersect test on each object separately, instead of doing them all at once? This would save you a lot of CPU time, especially if you have a lot of objects.
Reply With Quote