You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to create a camera with a default position, for ease of use. I noticed that as soon as the camera is enabled, the initial set rotation is discarded. I suspect this has to do with something like pitch and yaw defaulting to 0 and resetting any rotations.
For reproducing, try the following:
// ... create the camera
camera.transform = Transform::from_xyz(10f32, 10f32, 10f32).looking_at(Vec3::ZERO, Vec3::Y);
The text was updated successfully, but these errors were encountered:
I am trying to create a camera with a default position, for ease of use. I noticed that as soon as the camera is enabled, the initial set rotation is discarded. I suspect this has to do with something like
pitch
andyaw
defaulting to 0 and resetting any rotations.For reproducing, try the following:
The text was updated successfully, but these errors were encountered: