| 769 | } |
| 770 | |
| 771 | void Actor::SetPosition(const Vector3& value) |
| 772 | { |
| 773 | CHECK(!value.IsNanOrInfinity()); |
| 774 | if (_transform.Translation != value) |
| 775 | { |
| 776 | if (_parent) |
| 777 | _localTransform.Translation = _parent->_transform.WorldToLocal(value); |
| 778 | else |
| 779 | _localTransform.Translation = value; |
| 780 | OnTransformChanged(); |
| 781 | } |
| 782 | } |
| 783 | |
| 784 | void Actor::SetOrientation(const Quaternion& value) |
| 785 | { |
no test coverage detected