kapa76 / jmonkeyengine

Automatically exported from code.google.com/p/jmonkeyengine
0 stars 0 forks source link

FlyByCamera flips upside-down #626

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
As discussed on the forums at 
http://hub.jmonkeyengine.org/forum/topic/preventing-the-camera-from-turning-upsi
de-down/
FlyByCamera.rotateCamera() needs a test to keep it from updating the axes when 
up.y<0

Original issue reported on code.google.com by sg...@sonic.net on 12 Feb 2014 at 5:13

GoogleCodeExporter commented 9 years ago
I think an issue is that some games may want to allow slightly greater than 90 
degrees or clamp at slightly less than 90 degrees.  The angle to use is a bit 
arbitrary.

It just happens to be that exactly 90 to -90 degrees all has a positive y in 
the up vector.  To do proper angle clamping, fly cam has to be rewritten to use 
angles instead of relative quaternions.  Though I suppose arbitrary angles 
could be encoded in the y threshold as long as they are symmetrical... but this 
is not the least of fly cam's issues.

I think this issue in the tracker is a good one, though.  Even if flycam never 
changes (and for a test camera it's important not to clamp the angle, I think) 
then at least people will have a place to look for one of the easy solutions.

Original comment by PSpee...@gmail.com on 12 Feb 2014 at 6:46

GoogleCodeExporter commented 9 years ago
Could add some properties to FlyByCamera that allow people to set the clamping 
range min and max along Y and/or X.

Original comment by Shakur...@gmail.com on 11 Mar 2014 at 10:50