Author Topic: setOrientation enlarges Object  (Read 2567 times)

Offline Dinin

  • byte
  • *
  • Posts: 28
    • View Profile
setOrientation enlarges Object
« 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

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: setOrientation enlarges Object
« Reply #1 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

Offline Dinin

  • byte
  • *
  • Posts: 28
    • View Profile
Re: setOrientation enlarges Object
« Reply #2 on: February 16, 2012, 09:12:23 pm »
yes ... now it works  :D.
Thanks for this quick help!