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
Code: [Select]
object3D.translate(translateVector);and a
Code: [Select]
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:
Code: [Select]
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!