| 756 | } |
| 757 | |
| 758 | void Actor::SetTransform(const Transform& value) |
| 759 | { |
| 760 | CHECK(!value.IsNanOrInfinity()); |
| 761 | if (_transform.Translation != value.Translation || _transform.Orientation != value.Orientation || _transform.Scale != value.Scale) |
| 762 | { |
| 763 | if (_parent) |
| 764 | _parent->_transform.WorldToLocal(value, _localTransform); |
| 765 | else |
| 766 | _localTransform = value; |
| 767 | OnTransformChanged(); |
| 768 | } |
| 769 | } |
| 770 | |
| 771 | void Actor::SetPosition(const Vector3& value) |
| 772 | { |
no test coverage detected