How would you implement sliding?
I am having a surprisingly hard time figuring this out. I'd like to add sliding akin to Mirror's Edge or Far Cry where you can press control while sprinting to slide like a baseball player.
The controls are fine, I just can't figure out a solid way to implement this so that the character moves faster downhill and slower uphill. Ideally I'd just use physics to carry the character but the proper method is eluding me. Here's what I've tried
Is there some way to make the character move downhill like they are in some kind of vehicle/snowboarding/whatever?
asked Oct 15 '14 at 11:34 PM in Blueprint Scripting
You're asking two things here. Sliding is easy, you just store the rotation of your character in a variable at the begininng of the slide, disable character controls while sliding, use a timeline to add movement input throughout the sliding action and use the same timeline to enable character controls when finished.
For the second one, you trace a line to the ground from your cahracter and get the hit normal. From that, you deduce the ground slope and add movement accordingly.
answered Oct 16 '14 at 03:53 PM
that video tutorial or a screen of the Blueprint would be really helpful for me >_< will you upload it ?
answered Jun 06 '16 at 02:06 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here