Determine where a Character stops
In order to replicate Paragon's locomotion system I'm required to know where my character will end its movement, I've watched all the documentation about this subject (Twitch streams, Laurent Delayent presentation and the Unreal Engine API) but I can't figure out a way to calculate exactly where the actor stops moving.
My attempt was, knowing that only friction slows down the movement, the following:
Not only it has a low precision with default values of the CharaterMovementComponent, but it brakes comepletely if I try to change the value of BrakingDecelerationWalking, probably because I haven't understood correctly what BrakingDecelerationWalking and GroundFriction purpose are.
So, if anyone knows more about Kinematics in Unreal than I do, I'll be glad to know more about this two variables usage and how to predict the character stop location
Interesting problem. First, I'm pretty sure all the locomotion stuff from Paragon is going to be included in the next engine version. I think they said that in the stream. We're supposed to do what we can for now but if you want to try it yourself in the meantime, I can respect that.
You're probably going to have a hard time getting the prediction to be accurate all the time. You're calculating it once over the entire deceleration but the engine is handling it in frame-sized time periods. It might be worth trying to update the prediction each tick and then adjust the animation speed accordingly. If the predictions aren't too far off then the changes in animation speed won't be noticeable.
As far as the math itself. I obviously don't have experience with this so if you think the problem is in there then you should post a link to the formula you're using.
answered May 08 '18 at 01:26 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here