| 453 | } |
| 454 | |
| 455 | void Object::SetRotation(const quaternion &trans) { |
| 456 | if (IsDifferentEnough(rotation_, trans)) { |
| 457 | rotation_ = trans; |
| 458 | LOG_ASSERT(!IsNan(rotation_[0])); |
| 459 | UpdateTransform(); |
| 460 | Moved(Object::kRotate); |
| 461 | rotation_updated = true; |
| 462 | } |
| 463 | } |
| 464 | |
| 465 | void Object::SetTranslationRotationFast(const vec3 &trans, const quaternion &rotation) { |
| 466 | bool changed_something = false; |
no test coverage detected