Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Home
Help
Search
Login
Register
www.jpct.net
»
jPCT-AE - a 3d engine for Android
»
Support
»
how to stop rotation on object
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: how to stop rotation on object (Read 2636 times)
penprakash
byte
Posts: 26
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
Logged
Thomas.
double
Posts: 833
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.
Logged
My game for Android
,
Physics example
,
Texture assistant
penprakash
byte
Posts: 26
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.
Logged
EgonOlsen
Administrator
quad
Posts: 12297
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!?
Logged
penprakash
byte
Posts: 26
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?
Logged
EgonOlsen
Administrator
quad
Posts: 12297
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...
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
www.jpct.net
»
jPCT-AE - a 3d engine for Android
»
Support
»
how to stop rotation on object