PDA

View Full Version : Avatar passing through room walls


Mike@vrs
07-18-2010, 12:21 AM
New to vizard, my avatar is passing through objects and the walls of the room. Using collision code, how do I prevent the avatar passing through when a walking instruction is given. Thanx.

Jeff
07-21-2010, 04:07 PM
You can check the distance between the avatar and other objects using the vizmat.Distance function. If the avatar is close to an object then you can end the walk action on the avatar and add a new one.