setRotationFromAxisAngle method
axis
- A normalized vector in object space.
angle
- angle in radians
Calls setFromAxisAngle
(axis
, angle
) on the quaternion.
Implementation
void setRotationFromAxisAngle(Vector3 axis, double angle) {
// assumes axis is normalized
quaternion.setFromAxisAngle(axis, angle);
}