Author Topic: draggableCamera choppy when spring back  (Read 3301 times)

markofevil3

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 25
    • View Profile
draggableCamera choppy when spring back
« on: May 25, 2015, 05:01:56 AM »
I tested using "Example 8 - Scroll View (Camera)" scene also. when i scroll items out of camera bound, they spring back. But it's look choppy when it's nearly reach destination, animation doesn't look smooth.
I debug inside SpringPosition.cs, sometime RealTime.deltaTime go higher than normal, maybe Update function has been skipped few frames.
If using scroll view(Panel), animation alway look smooth.
Is there any way to fix it to make it has same animation as ScrollView panel please?
Thank you!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: draggableCamera choppy when spring back
« Reply #1 on: May 26, 2015, 02:59:55 PM »
Any particular reason you are using that archaic approach anyhow? It hasn't been relevant since the clipped panels were introduced years ago. But to answer your question my guess is that you are just running into the part of the code that checks -- "is the current position close enough? if so, snap it to the end and end the spring". Check the script that does the animation.