how to stop rotation on object

Started by penprakash, July 30, 2013, 12:59:54 PM

Previous topic - Next topic

penprakash

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

Thomas.

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.

penprakash

onTouch event is not working when i set the billboard.

EgonOlsen

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!?

penprakash

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?

EgonOlsen

I've still no idea what you are talking about... ???