rotate about a pivot

6 views
Skip to first unread message

inmairs

unread,
Jun 1, 2010, 2:30:24 AM6/1/10
to Open Wonderland Scripting
Hi Morris,

we are using your scripting component to rotate a door in OWL 0.5.
It rotates around its center but we want to rotate around a pivot axis
situated
in the lateral part of the door. Is there any function to do it?

Thanks in advance,
Inma

Morris Ford

unread,
Jun 1, 2010, 11:37:42 AM6/1/10
to open-wonderl...@googlegroups.com
Inma,
Changing the pivot point of a model inside Wonderland is a real problem. I never figured out how to do it. There are several options to pivot an object, a door in this case:

Simulate having an edge pivot by using a combination of rotates and translates that make the door move correctly. This is hugely complicated to do and in my opinion, not worth the trouble.

Create a model of a door where the door is half of the actual model with the other half transparent. Then, when you rotate the model about the center, it will appear to rotate about an edge.

Wait for a bit until I get the collada loader modifications in place. These changes will allow for the creation of a model in Maya and exportation with ColladaMaya that has keyframe animations to be animated in Wonderland using the keyframe animations. The current version I am working on uses rotate and translate animations. The animation information gets loaded into the OWL scene graph. I have a module that I am working on that will allow for loading and animating nodes in a model that I will put in the module warehouse.
Morris
Reply all
Reply to author
Forward
0 new messages