setRotation method

dynamic setRotation(
  1. Vector3 v
)

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();
}