[Papervision3D] Rotation on axis

Darek Senkow darek at bigdonut.com
Sat Jun 16 10:21:06 EDT 2007


I'd say- make an object of equal size on x and z axis, and somewhat  
tall on the y axis- a rectangle or cylinder or whatever. This object  
will actually be the "hinge" of your door.

 From there, attach the door as a child object to your hinge with a x  
and z position (relative to the hinge) in such a way that one side of  
the door sits along the y axis of the hinge. I imagine when it's all  
positioned correctly it would actually look like a door sitting on a  
single hinge.

At that point, all you have to do is modify the hinge's rotationY and  
the door will open and close- as it will be a child of the hinge and  
utterly dependent upon the hinge itself. Then use a tween object to  
animate the hinge rotation and you've got a nice looking door moving  
as a real one would.

To me this would be the easiest solution.





On Jun 16, 2007, at 8:45 AM, Alessandro Valsania wrote:

> Hello everybody,
>
> What I'd like to achive is the movement of an openig door...
> ..is there an easy way to make a plane rotate around a fixed axe?
> Or this kind of rotation is still not implemented in PV3D?
>
> ...I've read something about Quaternios rotations... but that's a
> little too complex for my current knowledges of 3d and trigonometry...
>
> Thx in advance for your help..
>
> ale.
>
>
>
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org




More information about the Papervision3D mailing list