Skip to content

Configurable degrees of tilt for gyro parallaxing #44

Merged
merged 2 commits into from May 9, 2013

2 participants

@magebarf
magebarf commented May 1, 2013

(Sorry, seems GitHub won't let me create a pull request without my merging of branches as an additional commit)

A easy change that I figured while restricting the range for the gyro was configurable range of tilt, as it today was hard coded to limit the range to a total of 60 degrees (30 degrees in each direction from the center position).

This will bring back options to do what was removed when restricting the range. With this change the same result can be achieved by increasing the x and y range for the objects, and instead increase the gyroRange value when enabling plax.

Also, while fixing this I noticed that the activity target was actually being set upon every mousemove event.

magebarf added some commits Apr 30, 2013
@magebarf magebarf Merge branch 'gyrorange' a8c8ee6
@magebarf magebarf Add new option to set number of degrees tilt needed for full range. W…
…ill give get back some of the functionality that was lost when restricting gyro to same range as desktop by using wider range of tilt, and by setting a larger range of object motion.

Also fixes the options handling in enable() so they aren't set every update, but only once.
2314923
@cameronmcefee cameronmcefee merged commit bfa3c42 into cameronmcefee:master May 9, 2013
@cameronmcefee
Owner

Sorry for dragging my feet on this. My email seems to have increased by an order of magnitude in the last month.

This looks awesome, particularly the tilt limit.

Also, while fixing this I noticed that the activity target was actually being set upon every mousemove event.

Lol, yeah that's a good call.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.