| 71 | } |
| 72 | |
| 73 | void Transform::lookAt(const float3& position, const float3& target, const float3& up) |
| 74 | { |
| 75 | mTranslation = position; |
| 76 | float3 dir = normalize(target - position); |
| 77 | mRotation = math::quatFromLookAt(dir, up, math::Handedness::RightHanded); |
| 78 | } |
| 79 | |
| 80 | const float4x4& Transform::getMatrix() const |
| 81 | { |
no test coverage detected