# How to get started with tracked vehicle movement logic using physics?

**URL:** <https://forums.unrealengine.com/t/how-to-get-started-with-tracked-vehicle-movement-logic-using-physics/382802>\
**Category:** World Creation\
**Tags:** tank, unreal-engine, Physics, Vehicles, question\
**Created:** [January 24, 2017, 6:00am UTC](https://forums.unrealengine.com/t/how-to-get-started-with-tracked-vehicle-movement-logic-using-physics/382802 "2017-01-24T06:00:11Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_1ed1c3df](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_1ed1c3df](https://forums.unrealengine.com/u/anonymous_user_1ed1c3df)\
**Post date:** [January 24, 2017, 6:00am UTC](https://forums.unrealengine.com/t/how-to-get-started-with-tracked-vehicle-movement-logic-using-physics/382802/1 "2017-01-24T06:00:11Z")

</div>

I’m prototyping an arcadey tank game and I’m not sure how to get started on how the treads would deliver locomotion using physics. I have a basic understanding of how tread logic works: if full Y+ axis, drive forward with no rotation, if full X+ axis then rotate clockwise with no forward movement, etc. The problem I have is I’m not sure if this is programming for the physics I have in mind where I like to have both tread components provide torque via physics and its not just the tank as a whole being translated. For example, if only the right tread has x amount of torque and the left tread has zero, then physics should cause the tank to move forward while turning left. I’ve looking into perhaps modding the wheeled vehicle component for my purposes, but that has a lot of extra things I don’t need like gear changes and suspension. My goal is to simulate how treads would drive a tank while still having some physics without it being too much like a tank simulation.

Should I use the MoveUpdatedComponent() function in UMovementComponent? I’m not sure how I could use it to propel my tank using the treads like how I invision it.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_1ed1c3df](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_1ed1c3df](https://forums.unrealengine.com/u/anonymous_user_1ed1c3df)\
**Post date:** [January 25, 2017, 12:49am UTC](https://forums.unrealengine.com/t/how-to-get-started-with-tracked-vehicle-movement-logic-using-physics/382802/2 "2017-01-25T00:49:28Z")

</div>

I guess it would be better to ask how do I even get movement at all? I have little understanding of how movement components work.

![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/1/6/116d7bfc7f69db04f04bb816bb5b6adc7b6f03e7.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_1ed1c3df](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_1ed1c3df](https://forums.unrealengine.com/u/anonymous_user_1ed1c3df)\
**Post date:** [January 26, 2017, 4:45am UTC](https://forums.unrealengine.com/t/how-to-get-started-with-tracked-vehicle-movement-logic-using-physics/382802/3 "2017-01-26T04:45:41Z")

</div>

Okay, I figured out how movement even works, but I’m totally stuck on rotation. Where and how in the engine API do you script an object to rotate around an offset pivot?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_1ed1c3df](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_1ed1c3df](https://forums.unrealengine.com/u/anonymous_user_1ed1c3df)\
**Post date:** [January 28, 2017, 5:24am UTC](https://forums.unrealengine.com/t/how-to-get-started-with-tracked-vehicle-movement-logic-using-physics/382802/4 "2017-01-28T05:24:27Z")

</div>

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/1/f/31f8730a0477890b8fe809d78f217f2c7b77c3c3.jpeg "Space Dust Racing UE4 Arcade Vehicle Physics Tour") ](https://www.youtube.com/watch?v=LG1CtlFRmpU)

This video is a good start fro me, but there’s still a lot I don’t understand about using these physics components mentioned in the video.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_1ed1c3df](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_1ed1c3df](https://forums.unrealengine.com/u/anonymous_user_1ed1c3df)\
**Post date:** [January 28, 2017, 5:27am UTC](https://forums.unrealengine.com/t/how-to-get-started-with-tracked-vehicle-movement-logic-using-physics/382802/5 "2017-01-28T05:27:43Z")

</div>

I have lots of questions I can’t seem to find answers to. Like, what functions in the engine API are moving an object with physics? I know for sure its not Add Actor Local Rotation or Add Actor Local Offset, but is Add Input Vector in a Movement Component moving with physics? I’m not having any luck getting my thing to collide with other things.

---

<div class="post-metadata">

**Author:** ![Placid\_Storm](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Placid\_Storm](https://forums.unrealengine.com/u/Placid_Storm)\
**Post date:** [October 10, 2017, 6:30pm UTC](https://forums.unrealengine.com/t/how-to-get-started-with-tracked-vehicle-movement-logic-using-physics/382802/6 "2017-10-10T18:30:19Z")

</div>

I intend to look over this [VihiclesTechnicalGuide](https://docs.unrealengine.com/udk/Three/VehiclesTechnicalGuide.html#Tanks) at some point. I had a nerdgasm when I saw it. It gave me a lot of information but nothing that I could use. I just browsed it though. Add Actor Offset using the input of “AxisInput” “DeltaTime” and a turn speed all multiplied together seems to do well enough though. It isn’t really using physics though.

---

<div class="post-metadata">

**Author:** ![Placid\_Storm](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Placid\_Storm](https://forums.unrealengine.com/u/Placid_Storm)\
**Post date:** [October 10, 2017, 6:38pm UTC](https://forums.unrealengine.com/t/how-to-get-started-with-tracked-vehicle-movement-logic-using-physics/382802/7 "2017-10-10T18:38:44Z")

</div>

This also looks useful. [UE4 Vehicle User Guide](https://docs.unrealengine.com/latest/INT/Engine/Physics/Vehicles/VehicleUserGuide/) There seems to be no easy answer.
