[Papervision3D] Inconsistent rotationZ issue

Steve D kruass at gmail.com
Thu Jul 24 04:37:52 PDT 2008


I believe this is what the new localRotation properties are for:

do3d.localRotationX
do3d.localRotationY
do3d.localRotationZ

That should allow your rotations to work on the object's local axis.



On Thu, Jul 24, 2008 at 3:20 AM, Philip Bulley <p.bulley at impactbbdo.ae>
wrote:

> Hi,
>
> I'm finding when I rotate a cube on rotationZ, it always rotates along
> the world's z axis, instead of the cube's z axis.
>
> ie:
> cube.rotationX = 90;    // z is now the cube's up axis
> cube.rotationZ = 45;    // the cube doesn't rotate around it's up axis!
>
> This is inconsistent with the following example:
>
> cube.rotationZ = 90;    // x is now the cube's up axis
> cube.rotationX = 45;    // the cube rotates around it's up axis as
> expected
>
> Is there a reason for this, as this inconsistency doesn't seem very
> logical?
>
> Any advice would be greatly appreciated.
>
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20080724/295f74d7/attachment.html 


More information about the Papervision3D mailing list