Amethyst: Fly Camera rotates automatically when window dimensions are odd

Created on 12 Apr 2018  路  2Comments  路  Source: amethyst/amethyst

When the window dimensions are odd the fly camera will rotate without any mouse input.

This can be demonstrated with the fly_camera example by adding the following to display_config.ron:

dimensions: Some((801, 600)),

You should see the camera rotate automatically around the vertical axis.

Most helpful comment

Haha, I'm just playing around with the fly_camera and noticed this while trying to investigate #636.

I think this is caused because the MouseCenterLockSystem is locking to the integer center while FreeRotationSystem uses the floating center to determine the delta, thus for a screen with odd dimensions there is always a delta of 0.5.

I am happy to attempt to fix this later once I've finished work for the day.

All 2 comments

You should think about becoming our dedicated quality assurance :)

Haha, I'm just playing around with the fly_camera and noticed this while trying to investigate #636.

I think this is caused because the MouseCenterLockSystem is locking to the integer center while FreeRotationSystem uses the floating center to determine the delta, thus for a screen with odd dimensions there is always a delta of 0.5.

I am happy to attempt to fix this later once I've finished work for the day.

Was this page helpful?
0 / 5 - 0 ratings