bonsairobo / smooth-bevy-cameras

Bevy camera controllers with buttery, exponential smoothing.
MIT License
283 stars 55 forks source link

Allow camera use different up directions #27

Closed J-F-Liu closed 1 year ago

J-F-Liu commented 1 year ago

Although Vec::Y is good default, in many other cases where we need to change the camera up direction.

joverwey commented 1 year ago

An example of where this is a problem is when trying to do a top down view. In this case the Up-vector (Vec3::Y) is co-planar with the forward vector which is down the negative Y-axis. This makes the cross product operation fail when trying to compute the view transform.

Could we get this fix merged?

bonsairobo commented 1 year ago

Yes, thank you!