Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Recommendations on how to approach player flips?

Asked by 2 years ago

I am looking for any recommendations on how I should implement making a player do a flip. I would like for the flip to be able to be ended whenever the player stops input. For example, if I hold e to do a backflip and let go half way the player should stay upside down.

Currently I have tried animations which doesn't work well with doing partial amounts of the flip. I have tried getting the CFrame as the animation is stopped and update the CFrame to that to hold that pose but so far hasn't worked great.

I have also tried using no physics state and applying AngularImpulse to spin the player in a flip and using align orientation to try to keep it on axis, but this seemed to not produce consistent similar rotations.

I am wondering if manually animating the flips with CFrames and Tween would be the best option or if this will end with glitchy/shaky looking flips like I have seen in many game.

0
As for the glitchy/shacky looking animations, that is usually a result of improper interpolation on the client side. If you animate both on the server and client at the same time it shouldnt be a problem. Benbebop 1049 — 2y

Answer this question