PDA

View Full Version : avatar collision


5ky1ine
04-22-2009, 02:29 AM
i have a avatar in my environment which is controlled using the keyboard, at the moment the avatar dont have collision and walks through the objects. is there any way of enabling collision to the avatar so it dosent walk through objects in the scene?

any suggestions please..

Gladsomebeast
04-22-2009, 11:23 AM
You could move the avatar with the help of Vizard's physics system.

The code in the following article moves a viewpoint via keyboard and keeps the view from moving through walls.
> http://vizworkshop.com/articles/walkthrough_app.html

You'll want to modify the UserAvatar.py file to move your avatar and use your keyboard commands.

Check the Vizard help for background on the physics system.