Quantcast
Channel: Questions in topic: "issue"
Viewing all articles
Browse latest Browse all 827

Rigidbody uncontrollable bouncing on uneven terrain

$
0
0
Hi there, I am currently working on a character controller that uses the rigidbody component. My current issue is that in some places where my terrain is a bit bumpy, the character starts bouncing like there is no tomorrow. I have been searching all over the place for a solution with not luck. Relevant info: I am using a sphere collider. Here is a snippet of the code that I am using to move the character. var horizontalInput = Input.GetAxis("Horizontal"); var verticalInput = Input.GetAxis("Vertical"); Vector3 moveDirection = new Vector3(horizontalInput * Slowest, 0, verticalInput * movementSpeed); _rb.AddRelativeForce(moveDirection); I have a video that will show the exact problem that I am having. [https://youtu.be/PV54DA4PQWw][1] Any toughs on how to address this issue will be appreciated, thank you :) [1]: https://youtu.be/PV54DA4PQWw

Viewing all articles
Browse latest Browse all 827

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>