|
#1
|
|||
|
|||
Urgent!! Rotation
Hey,
due to our university project, we have to build an impossible world. Hereby it is possible to walk on the walls. You have to imagine it like that: Rigth in front of the wall is a Trigger (position and View) which rotates the world so that you find yourself standing on the wall where you just walked against. I'll paste the method in here so you can have a look at it. What happens is that we fall outside the room after we spinned the world twice in a different direction. The problem with spin is also, that it turns off the collision so you fall through walls if you are next to them. Does anyone know another possibility to rotate the world so that the gravity also works? Or do I have to change the parameters in setcenter()? It is very urgent and I am really desperate. Thanks a lot ! def action(self,x,y,z,Node,deg = 90): """This function rotates the whole world when the user walks into a trigger. The user commits the axis where to rotate about and the amount of degrees. On default it is set on 90 degrees, but can be changed. x,y,z sets the axis where to rotate about. If you want to rotate about a certain axis, you have to change the value to 1, otherwise it is zero Node is the WorldNode which is the parent of every object in the world. You add the action on this node. deg sets the amount of degrees the world will be rotated.""" Node.setCenter(viz.MainView.getPosition(mode = ABS)) Node.addAction(vizact.spin(x,y,z,deg,1)) |
#2
|
|||
|
|||
Can you post example code that reproduces the problem?
|
#3
|
|||
|
|||
Hi!
I just came across this thread by change. Why don't you create an invisible plane underneath your real world? This would prevent you from falling, even if the rendered world is rotated. Cheers, Johannes |
Tags |
rotation, setcenter, spin |
Thread Tools | |
Display Modes | Rate This Thread |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Varying rotation speed with spinTo | mape2k | Vizard | 2 | 03-22-2013 08:48 AM |
Custom Joystick Rotation | mhead10 | Vizard | 9 | 11-26-2012 01:06 PM |
set bone rotation - cal3d | munteanu24d | Vizard | 0 | 03-23-2010 05:25 AM |
Unable to perform 360 rotation using vizact.spinto | vijaykiran | Vizard | 2 | 09-29-2009 09:39 AM |
tracking head rotation orientation | VAmanda | Vizard | 3 | 09-21-2005 05:57 PM |