[Papervision3D] Rotating a Collada Object (TweenMax)

Javier España | javierespana.com info at javierespana.com
Mon Jul 13 08:15:11 PDT 2009


Well, up to the next problem... It seems my object's pivot point is wrong, I
double checked it on 3Ds Max and it's good, but for some reason when
exporting it as a collada model, it's not centered...

This makes my rotations to move the entire object instead of rotating it
keeping the center of it in place... Here's the example:

http://www.javierespana.com/uploads/plano_collada.swf

I read about creating a new DisplayObject3D, adding the collada model as a
child of it, and then adding the DisplayObject3D to the scene...

This works fine, but the rotationX isn't working at all, any ideas?

Thanks,

Javier

2009/7/13 Javier España | javierespana.com <info at javierespana.com>

> Thanks a lot, I missed that =)
>
>
> On Mon, Jul 13, 2009 at 11:06 AM, Ross Sclafani <ross.sclafani at gmail.com>wrote:
>
>> i would assume you have to target rotationY or rotationX, or rotationZ..
>> 3d objects do not have a "rotation" property....
>> _r
>>
>> On Jul 13, 2009, at 9:47 AM, Javier España | javierespana.com wrote:
>>
>>  Hi there guys,
>>>
>>> I've managed to load and interact with a Collada object called "collada"
>>> in my scene. The thing is that I added a mouse listener so when a user
>>> clicks on the collada object something happens.
>>>
>>> If I do this: collada.x += 20;
>>>
>>> All works great, but it doesn't work when I do this: TweenMax.to(collada,
>>> 1, {shortRotation:{rotation:270}}); or any other TweenMax rotation...
>>>
>>> Any ideas?
>>>
>>> Thanks,
>>>
>>> Javier
>>> _______________________________________________
>>> Papervision3D mailing list
>>> Papervision3D at osflash.org
>>> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
>>>
>>
>>
>> _______________________________________________
>> 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/20090713/a0a1c1bb/attachment.html>


More information about the Papervision3D mailing list