Hello, I'm trying to create a skiing ability but can't quite get the sliding to work properly. I've tried three different approaches:
- If I disable root motion, motor damping and positional input the player will slide if I apply AddForce to m_CharacterLocomotion using the vertical input axis (W key). However the player only slides while I'm pressing that button and never continues sliding on its own. If the player has some prior momentum when the skiing ability is activated, it will slide at that speed without applying force. But if I stop the player and try to start sliding again, it will only slide when the key is pressed. (Previous Acceleration is set to 1 btw).
- If I use the same setup but keep positional input enabled it solves that problem and continues to slide even when releasing the W button, but the sliding speed is constant and only increases when applying force with W. It's not affected by gravity and doesn't increase when going down a steeper slope for example. And if it starts going too fast it will lift off the ground and fly a long distance before crashing into the ground.
- If I copy the built-in slide ability the player seems to slide correctly/dynamically (i.e. slide faster down a steeper slope) but will regularly and suddenly get stuck as if it hit a wall, and only resume sliding if I move the player slightly. It also doesn't rotate the player to the direction I'm looking with the mouse -- it just goes straight.
Last edited: