- Home /
How do I fix this movement issue?
Currently, I'm trying to go up stairs which are made in probuilder and my character just cant go up the stairs for some reason, it seems like I need some sort of force to move my character up. My movement system is based on rb.addforce, anyone know how to fix this?
Answer by Llama_w_2Ls · Jul 29, 2020 at 10:12 AM
Probuilder stairs are designed for character controllers to climb up. This is because character controllers have a value called the step offset which allows you to climb steps that aren't higher than that value with ease. However, with rigidbodies, They cant pass through or above colliders, as they dont have that step offset component. If you want to go up stairs created in probuilder, try making the mesh convex, which creates a slope-kind-of collider, (a ramp), that your player can go up.
Just tried convex and it seems that my character doesn't have the capability to go over that too.
I guess you need to create a custom collider, like a ramp.
Yeah alright thanks for the help @Llama_w_2Ls , by the way, I'm trying to create a certain particle effects, like a wind effect that goes into the player when he reaches a certain speed, for example, if I reach the speed of 25f, then the certain particle effect will play, how do I do that?
Your answer
Follow this Question
Related Questions
How to stop player from moving 1 Answer
Rotate game object and then return to its original rotation 1 Answer
Slime script? 1 Answer
New to Unity & Scripting, How Do I Create a Movement System Thats About Building Up Speed? 0 Answers
My gameobject only moves to the right once and then stops, why? 3 Answers