- Home /
Inertia Scrolling/ Pan
Has anyone been able to implement inertia when panning the camera so it looks similar to apple's scrolling list. I'm using Prime31 touchKit but there is no built in inertia.
Answer by rakkarage · Mar 14, 2014 at 04:57 PM
for snapping ya just pan without concern for edges until pan stops then snap it back with a spring tween as for inertia "Have a look at RotationWheelAndDecelerationBehaviour. there is an example for how to do the deceleration for both linear panning and rotational movement. Trick is to see what is the velocity when user ends the touch and continue in that direction with a small deceleration." http://stackoverflow.com/questions/17083570/adding-inertia-to-a-uipangesturerecognizer
an example with tapping & panning & snapping & inertia is here https://github.com/rakkarage/Unity3D-CoverFlow i do a similar thing when the user pans my map offscreen
Your answer
Follow this Question
Related Questions
TWO GUI texture that doesn't work together 0 Answers
Mobile keyboard questions 0 Answers
Force 3D touch IOS 1 Answer
Unity iPhone Touch Counter 1 Answer