# Chaos vehicle gets "stuck" on slopes

**URL:** <https://forums.unrealengine.com/t/chaos-vehicle-gets-stuck-on-slopes/1574641>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, question\
**Created:** [December 30, 2023, 8:53pm UTC](https://forums.unrealengine.com/t/chaos-vehicle-gets-stuck-on-slopes/1574641 "2023-12-30T20:53:29Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kanturu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kanturu](https://forums.unrealengine.com/u/Kanturu)\
**Post date:** [December 30, 2023, 8:53pm UTC](https://forums.unrealengine.com/t/chaos-vehicle-gets-stuck-on-slopes/1574641/1 "2023-12-30T20:53:29Z")

</div>

]  
Hi, does anyone know if there is a setting that affects this behavior? I’d like my vehicle to roll down from slopes regardless of their angle (unless the player actively holds the brake button)

This also appears to be the default behaviour of the off-road vehicle from the template.

Thanks a lot in advance to anyone who tries to help!

(edit: i’m on 5.3.2, forgot to mention)

---

<div class="post-metadata">

**Author:** ![vidaandras](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/vidaandras/32/878178_2.png) [@vidaandras](https://forums.unrealengine.com/u/vidaandras)\
**Post date:** [December 31, 2023, 3:19pm UTC](https://forums.unrealengine.com/t/chaos-vehicle-gets-stuck-on-slopes/1574641/2 "2023-12-31T15:19:11Z")

</div>

I literally have the same issue with my car… none of the enigine parameters seems to affect this…

---

<div class="post-metadata">

**Author:** ![Kanturu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kanturu](https://forums.unrealengine.com/u/Kanturu)\
**Post date:** [January 1, 2024, 10:24pm UTC](https://forums.unrealengine.com/t/chaos-vehicle-gets-stuck-on-slopes/1574641/3 "2024-01-01T22:24:23Z")

</div>

@ [vidaandras](https://dev.epicgames.com/community/api/user_profiles/tab-redirect/about?discourse_username=vidaandras) I’m trying to dive into the source code in search of a solution, I’ll let you know if I ever manage to solve this

---

<div class="post-metadata">

**Author:** ![Kanturu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kanturu](https://forums.unrealengine.com/u/Kanturu)\
**Post date:** [January 3, 2024, 7:04pm UTC](https://forums.unrealengine.com/t/chaos-vehicle-gets-stuck-on-slopes/1574641/4 "2024-01-03T19:04:03Z")

</div>

@vidaandras

Solved it.

p.Chaos.Suspension.SlopeThreshold

Add this to your vehicle’s begin play/construction script  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/9/d/39d5099f26545e7e8c5ce3edf76fb30c5ac563fc.png)

I found this by digging through the source code, doesn’t seem like there’s documentation for this which sucks.

Basically, the chaos vehicles suspension system have a mechanism called anti-slide which stops the vehicle in its place when its on a very low speed and it’s below a certain angle.

Here’s how it works: “Slope threshold below which the anti-slide on slope mechanism is employed, value = Cos(SlopeAngle), i.e. for 50 degree slope = 0.6428, 30 degree slope = 0.866”

So basically setting this variable to 1 is equal to 0 degrees, meaning the vehicle never stops on slopes, of course you can set it as you like.

You might also find the following console variables useful:

p.Chaos.Suspension.SlopeSpeedThreshold - _“Speed below which the anti-slide on slope mechanism is fully employed”_

p.Chaos.Suspension.SlopeSpeedBlendThreshold - _“Speed below which the anti-slide on slope blend mechanism starts”_

So glad to be over this issue already 😃

---

<div class="post-metadata">

**Author:** ![vidaandras](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/vidaandras/32/878178_2.png) [@vidaandras](https://forums.unrealengine.com/u/vidaandras)\
**Post date:** [January 3, 2024, 10:46pm UTC](https://forums.unrealengine.com/t/chaos-vehicle-gets-stuck-on-slopes/1574641/5 "2024-01-03T22:46:23Z")

</div>

Dude I will make a statue of you in my game.

---

<div class="post-metadata">

**Author:** ![vidaandras](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/vidaandras/32/878178_2.png) [@vidaandras](https://forums.unrealengine.com/u/vidaandras)\
**Post date:** [January 3, 2024, 10:59pm UTC](https://forums.unrealengine.com/t/chaos-vehicle-gets-stuck-on-slopes/1574641/6 "2024-01-03T22:59:45Z")

</div>

Since you were this awesome and dug through the mess of Chaos Vehicle, did you by any chance saw anything related to my problem?

> [@Chaos Vehicle: Wheel Detecting Ground Upside down?](https://forums.unrealengine.com/t/chaos-vehicle-wheel-detecting-ground-upside-down/1576608):
>
> Hello! I have this wierd issue I can’t seem to get around. Chaos Wheeled Vehicle wheels are acting strange. Everything works quite nicely in general, but when my car is upside down, the wheels somehow detect the ground, try to jump towards it as much as the suspension limit let’s it (makes the car dance), instead of just having the suspension pushing the wheels upwards, and that’s it. Is there a way I can limit the ground detection distance? It doesn’t make sense to detect it this far either…

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [February 2, 2024, 11:00pm UTC](https://forums.unrealengine.com/t/chaos-vehicle-gets-stuck-on-slopes/1574641/7 "2024-02-02T23:00:29Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
