void LostCore::FBasicCamera::AddPositionLocal(const FFloat3& pos) { FQuat orientation; orientation.FromEuler(ViewEuler); FTransform world(orientation, ViewPosition); ViewPosition = world.TransformPosition(pos); }
FFloat4x4 LostCore::FBasicCamera::GetViewMatrix() const { FQuat orientation; orientation.FromEuler(ViewEuler); FFloat4x4 world; world.SetRotateAndOrigin(orientation, ViewPosition); world.Invert(); return world; }