WorldViz User Forum Urgent!! Rotation
 Register FAQ Search Today's Posts Mark Forums Read

#1
06-03-2013, 04:57 PM
 kharms Member Join Date: Jun 2013 Posts: 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))

#2
06-10-2013, 05:10 PM
 Jeff WorldViz Team Member Join Date: Aug 2008 Posts: 2,465
Can you post example code that reproduces the problem?
#3
07-03-2013, 11:09 AM
 mape2k Member Join Date: Mar 2013 Posts: 60
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 Linear Mode Rate This Thread: 5 : Excellent 4 : Good 3 : Average 2 : Bad 1 : Terrible

 Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are On [IMG] code is On HTML code is Off Forum Rules
 Forum Jump User Control Panel Private Messages Subscriptions Who's Online Search Forums Forums Home Announcements Vizard Precision Position Tracker (PPT) Plug-in development

 Similar Threads Thread Thread Starter Forum Replies Last Post mape2k Vizard 2 03-22-2013 08:48 AM mhead10 Vizard 9 11-26-2012 01:06 PM munteanu24d Vizard 0 03-23-2010 05:25 AM vijaykiran Vizard 2 09-29-2009 09:39 AM VAmanda Vizard 3 09-21-2005 05:57 PM

All times are GMT -7. The time now is 06:50 AM.