setOrientation enlarges Object

Started by Dinin, February 16, 2012, 08:43:28 PM

Previous topic - Next topic

Dinin

Hy !

I try to move objects around and set their orientation to view Direction.

So i do a
object3D.translate(translateVector);
and a
object3D.setOrientation(ViewDirectionVector, new SimpleVector(0,0,1f));
But when i make setOrientation the object is enlarged (about 10 times larger).
This also happens if i set Orientation with fixed Vectors like:
object3D.setOrientation(new SimpleVector(1f,0,0), new SimpleVector(0,1f,0));

Also scaling the Object has no effect on this object anymore.

What i'm doing wrong ?

Thanks and greets
Dinin

EgonOlsen


Dinin

yes ... now it works  :D.
Thanks for this quick help!