www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: Dinin on February 16, 2012, 08:43:28 PM

Title: setOrientation enlarges Object
Post by: Dinin on February 16, 2012, 08:43:28 PM
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
Title: Re: setOrientation enlarges Object
Post by: EgonOlsen on February 16, 2012, 09:01:44 PM
Opps...that's a bug. Try this version, it should fix it: http://jpct.de/download/beta/jpct_ae.jar (http://jpct.de/download/beta/jpct_ae.jar)
Title: Re: setOrientation enlarges Object
Post by: Dinin on February 16, 2012, 09:12:23 PM
yes ... now it works  :D.
Thanks for this quick help!