Walking Down the Stairs
Hi all,
I've been trying to create a falling from stairs scenario, but the my functions doesn't work as expected. The relevant code is below. Once the fall function is activated the main view moves forward and down repeatedly (bumping), but instead of going down the stairs, it's stuck in the original position. The "if" loop isn't working either. Now I'm stuck with it and have no idea how to modify the code. Please help me if you see what the problems are. Thank you. Code:
#Bumping |
Take a look at the viewpoint collision and gravity commands. Does that work for you?
|
Hi Jeff, I set my collision and gravity as follows:
The MainView still doesn't go down the stairs instead just 'bumps" at one location only. I tried to change the gravity and turn off collision but still the same # viz.MainView.collision(viz.ON) viz.MainView.stepsize(0.6) viz.MainView.gravity(20) # |
Can you post a working example that reproduces the issue?
|
All times are GMT -7. The time now is 05:45 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC