WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 06-03-2013, 03:57 PM
kharms kharms is offline
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))

Node.addAction(vizact.spin(x,y,z,deg,1))
Reply With Quote
  #2  
Old 06-10-2013, 04:10 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
Can you post example code that reproduces the problem?
Reply With Quote
  #3  
Old 07-03-2013, 10:09 AM
mape2k mape2k is offline
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
Reply With Quote
Reply

Tags
rotation, setcenter, spin

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Varying rotation speed with spinTo mape2k Vizard 2 03-22-2013 07:48 AM
Custom Joystick Rotation mhead10 Vizard 9 11-26-2012 12:06 PM
set bone rotation - cal3d munteanu24d Vizard 0 03-23-2010 04:25 AM
Unable to perform 360 rotation using vizact.spinto vijaykiran Vizard 2 09-29-2009 08:39 AM
tracking head rotation orientation VAmanda Vizard 3 09-21-2005 04:57 PM


All times are GMT -7. The time now is 03:36 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC