# How do I make the car drift only when I hold or press the handbrake? 

**URL:** <https://forums.unrealengine.com/t/how-do-i-make-the-car-drift-only-when-i-hold-or-press-the-handbrake/2718379>\
**Category:** Programming & Scripting\
**Tags:** car, unreal-engine, please-help-me, UE5, question\
**Created:** [April 27, 2026, 7:46pm UTC](https://forums.unrealengine.com/t/how-do-i-make-the-car-drift-only-when-i-hold-or-press-the-handbrake/2718379 "2026-04-27T19:46:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eclipith](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Eclipith](https://forums.unrealengine.com/u/Eclipith)\
**Post date:** [April 27, 2026, 7:46pm UTC](https://forums.unrealengine.com/t/how-do-i-make-the-car-drift-only-when-i-hold-or-press-the-handbrake/2718379/1 "2026-04-27T19:46:43Z")

</div>

I have been in a class for game development, and have been trying to make a drifting game. I have used @5Drifts tutorial, and the physics are amazing! But I am trying to make the car ONLY drift when the handbrake is in use. I also want the car to be able to do donuts, and the car physics right now can’t do that yet.

I’m just wondering if anyone else has done this and how I would implement this into my own game.

---

<div class="post-metadata">

**Author:** ![Mind-Brain](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mind-brain/32/906573_2.png) [@Mind-Brain](https://forums.unrealengine.com/u/Mind-Brain)\
**Post date:** [April 27, 2026, 8:43pm UTC](https://forums.unrealengine.com/t/how-do-i-make-the-car-drift-only-when-i-hold-or-press-the-handbrake/2718379/2 "2026-04-27T20:43:42Z")

</div>

Hey @Eclipith! Welcome to the forums!

So I skimmed through to see what they’re doing in that video and it looks like you can get the car blueprint, cast to the car blueprint if necessary, use **Get Component of class** and get _wheel._ Then you can drag off of wheel to SET Cornering Stiffness and Friction Force Multiplier to values you choose based on if the handbrake is pulled or not. You would do a branch, have a “handbrake?” boolean variable to use there, and if “handbrake?” is true, set to the drifting values you want and on false set it to regular values (this will take 2 set nodes on each branch) then you can merge the paths back together on the next nodes if there are any.

You definitely will need to have the button you use (which should probably be a Hold/Release) to set “Handbrake?” boolean.

Hope that helps! If there’s more confusion try to post pictures of your code in a readable state! 🙂

---

<div class="post-metadata">

**Author:** ![Mind-Brain](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mind-brain/32/906573_2.png) [@Mind-Brain](https://forums.unrealengine.com/u/Mind-Brain)\
**Post date:** [May 11, 2026, 6:43pm UTC](https://forums.unrealengine.com/t/how-do-i-make-the-car-drift-only-when-i-hold-or-press-the-handbrake/2718379/3 "2026-05-11T18:43:53Z")

</div>

Did you get it figured out, @Eclipith? Let us know how you did! This isn’t an uncommon use case so the more info we see out there the more it helps future creators! 🙂
