NickolausDS / Unity-Free-Flight

A Unity Package to add gliding flight to any Unity Object.
GNU General Public License v3.0
60 stars 13 forks source link

Flare Mechanic with new camera causes bad camera angle #138

Closed NickolausDS closed 9 years ago

NickolausDS commented 9 years ago

Any follow camera will take into account tilt and pitch, which is a good thing -- it makes the flight experience more immersive to the player. However, flares are an extreme pitch, which means the camera typically stares directly upwards into the sky on use. For typical flare use-cases, this is a bad thing.

We don't necessarily want to modify the camera -- if we did that, we would have to modify every camera ever used with Free Flight. #61 considered keeping two rotations, the "mechanical rotation" and the "aesthetic rotation". In effect, we keep one rotation to apply physics, and another that actually rotates the game object for everyone to see. This way, we can apply rotational physics, and still have our model look good.

Another possibility is to only apply rotations the child game object, and leave the top level game object alone. This means we wouldn't suffer from extreme angles exerted on the flight object, but we wouldn't get the more subtle rotations from banking and pitching.