So, here is the thing.
I want to start (a cube) on a path–move forward. When I press WASD, it should bounce to that direction and come back to the original place.
its like the plus (+) movement. I want to start at the center and then go UP (W) DOWN (S) …you get the point. and then come back to the center after every key-hit smoothly.
Any help is appreciated.
*I know I should not ask for even such a basic thing. but I googled and I did not get anything, maybe I don’t know I’m typing.
Using variables for your start position and your target position you can just lerp between the 2. If your characters start position never changes you can just assign it via the inspector or in Start. Else just assign it before you start your lerp towards your target position. Hope this helps
1 Like
dude, could not have put it more clearly. Thanks. BTW was checking lerp just a couple of hours ago on YT, but could not understand clearly, maybe was not sure if it’ll help my situation. Now realize they were actually good vids.
thanks man.
1 Like