Author Topic: how to stop rotation on object  (Read 2518 times)

Offline penprakash

  • byte
  • *
  • Posts: 26
    • View Profile
how to stop rotation on object
« on: July 30, 2013, 12:59:54 pm »
Hi,

 when i move the camera right or left, the whole object is rotated. How to stop the rotation when the camera moves right and left?

Thanks & Regards,
Prakash V

Offline Thomas.

  • double
  • *****
  • Posts: 833
    • View Profile
Re: how to stop rotation on object
« Reply #1 on: July 30, 2013, 03:11:22 pm »
Probably you mean billboarding. If you need "lock" rotation in x and y axes of object, there is implemented method setBillboaring(boolean), but if you need only one axis, you have to implement it by your self.

Offline penprakash

  • byte
  • *
  • Posts: 26
    • View Profile
Re: how to stop rotation on object
« Reply #2 on: July 30, 2013, 03:40:57 pm »
onTouch event is not working when i set the billboard.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: how to stop rotation on object
« Reply #3 on: July 30, 2013, 09:02:27 pm »
If you move the camera, the camera will be translated relative to the object. The object isn't rotated, you are just looking at it from a different position...if that is what you mean!?

Offline penprakash

  • byte
  • *
  • Posts: 26
    • View Profile
Re: how to stop rotation on object
« Reply #4 on: August 01, 2013, 03:48:05 pm »
When i move the camera to 90 degree down direction the model object is displayed as 2d image and increase the down side the object is rotating from front to back. Can you please tell me why it is? or is possible to make it static position?

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: how to stop rotation on object
« Reply #5 on: August 01, 2013, 07:18:20 pm »
I've still no idea what you are talking about... ???