Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FreeFlightCamera lerping #9

Open
mhulse opened this issue Jun 2, 2015 · 0 comments
Open

FreeFlightCamera lerping #9

mhulse opened this issue Jun 2, 2015 · 0 comments

Comments

@mhulse
Copy link
Member

mhulse commented Jun 2, 2015

This script:

https://github.com/patflannery/unity-awesomeness/blob/f09a384c811ed07fa46c76e80b679adcf74aff05/Camera/FreeFlightCamera.js

Apply lerp:

http://docs.unity3d.com/ScriptReference/Mathf.Lerp.html

there's at least two different functions - one for general math, one for vectors (physics stuff). basically yeah you put two values in and it eases between them
"interpolates between a and b by t. t is clamped between 0 and 1."
but for that script it'd be great to have you accelerate and decelerate when moving
you could set the time for the lerp to be like 10 seconds, then you'd pretty much have a "takeoff"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant