#1
|
|||
|
|||
Gravity changes with angle of view in mid-drop?!
Hi,
I believe I may have found a rather major bug in WorldViz involving gravity implementation on the view. I am obviously open to being corrected on this -- there may be something really obvious I have missed. It appears as though if you look in a different direction when falling, it actually affects the angle of gravity! Consider this example: Code:
import viz, vizact viz.go() ground = viz.addChild('ground.osgb') ground.setScale(10,1,10) # Make the ground a bit bigger viz.MainView.setPosition(0,75,0) # Put me up in the air viz.collision(viz.ON) # Turn on collision detection def lookDown(): viz.MainView.setEuler(0,90,0, viz.HEAD_ORI) vizact.ontimer2(2, 0, lookDown) # After 2 seconds of falling, look down If you stand on an object looking forwards, then walk straight off it, fall a bit, turn around and look down (perfectly possible to do), you actually end up getting thrown away from it as well as falling downwards! I would appreciate any help in the matter as gravity not being 'downwards' really impacts what I am trying to do. An additional possible bug: if you change the positional chunk of code above to Code:
viz.MainView.setPosition(0,1000,0) |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Freeform view on an animated object problem | jaylocco | Vizard | 2 | 06-08-2009 08:09 PM |
View | nlfrnassimi | Vizard | 0 | 03-17-2009 02:01 AM |
View | nlfrnassimi | Vizard | 4 | 03-12-2009 05:25 AM |
problem with stereo mode | shivanangel | Vizard | 3 | 10-17-2006 09:58 AM |
keeping a 3d object in front of the view | tavaksai | Vizard | 1 | 07-07-2004 09:33 AM |