www.jpct.net
jPCT-AE - a 3d engine for Android => Support => Topic started by: jaychang0917 on April 01, 2017, 11:38:22 am
-
Is there any method that i can rotate a model by euler angles (pitch, yaw, roll)?
Thanks!
-
I tried with the following code, it works.
model.clearRotation();
model.rotateX((float) Math.toRadians(pitch));
model.rotateY((float) Math.toRadians(yaw));
model.rotateZ((float) Math.toRadians(roll));
-
I think pretty much everything in jpct works with radians rather than degrees... :P