How to prevent an object from jumping when moving on downslopes?
Is there a way to make an object "stick" to a sloped surfaces and "unstick" when i press "jump"?
I tried adding more downforce/gravity to the object, but it only make the object jump more frequent.
Answer by UrielKane · Jun 30, 2016 at 05:19 PM
I'm not a natural to english so excuse me if i miss understud this. But as far as i can read, you want the player can't jump when tu are on a certain angle surface. Is that right? If so, you can check the normal of the contact of collision. I cant remember when and how i did it once. But it have something to be with collisions contacts and contact point normals. I search on the docs but i cant figure how i did it back then. I think i use vector3 angle to check if the normal of the contacted surface si no more than a value, but no sure.
Your answer
Follow this Question
Related Questions
make rigidbody jump and maintain velocity 1 Answer
How i make a ball jump where i point with my mouse?[3D] 0 Answers
How can I make Jumps smooth? 0 Answers
Rigidbody Stop and jump 0 Answers
c# jumping isn't consistent, please help 0 Answers