PDA

View Full Version : Collision detection without stopping view


Notch
09-09-2014, 04:53 AM
I'd like to detect collisions, but don't want collisions to prevent the view from moving forwards. In other words, I'd like the player to pass through objects, but to be able to register the fact that an object was passed through.

Adding the following line to my code allows me to register collisions, but unfortunately it also means that the player can no longer pass through objects.

viz.collision(viz.ON)

How do I do this?

Jeff
09-09-2014, 09:52 AM
You can use proximity sensors (http://docs.worldviz.com/vizard/#vizproximity.htm) to detect when the viewpoint enters/exits the bounding area of an object.