setRotation method
Set's the object rotation in degrees.
Implementation
setRotation(Vector3 v) {
rotation.x = MathUtils.degToRad(v.x);
rotation.y = MathUtils.degToRad(v.y);
rotation.z = MathUtils.degToRad(v.z);
updateMatrix();
}
Set's the object rotation in degrees.
setRotation(Vector3 v) {
rotation.x = MathUtils.degToRad(v.x);
rotation.y = MathUtils.degToRad(v.y);
rotation.z = MathUtils.degToRad(v.z);
updateMatrix();
}