* Sets the given rotation represented as a Quaternion to the 3D object. * * @param {Quaternion} q - The Quaternion
( q )
| 514 | * @param {Quaternion} q - The Quaternion |
| 515 | */ |
| 516 | setRotationFromQuaternion( q ) { |
| 517 | |
| 518 | // assumes q is normalized |
| 519 | |
| 520 | this.quaternion.copy( q ); |
| 521 | |
| 522 | } |
| 523 | |
| 524 | /** |
| 525 | * Rotates the 3D object along an axis in local space. |