Thread: Gravity
View Single Post
  #2  
Old 03-04-2009, 11:47 AM
Gladsomebeast Gladsomebeast is offline
Member
 
Join Date: Mar 2005
Location: Isla Vizta, CA
Posts: 397
The viz.gravity command changes the force of gravity on the viewpoint when viz.collision is on. This will not help you with your pillars =(

But, there's hope. You can use Vizard's physics engine to move the pillars. There are tutorials in Vizard's help that will get you started with the physics engine.

If you just need the pillars to fall and sit there all nice and stable you could move them manually each frame with a timer and this physics function:

yPosition = initialPosition + initialVelocity*secondsPassed + .5*gravitysAcceleration*secondsPassed*secondsPasse d

For the pillars this function would probably look like this:
yPosition = 0 + 0 + .5*-9.8*secondsPassed*secondsPassed
__________________
Paul Elliott
WorldViz LLC
Reply With Quote