# How to build a composite vehicle

**URL:** <https://forums.unrealengine.com/t/how-to-build-a-composite-vehicle/447675>\
**Category:** World Creation\
**Tags:** vehicle, wheeled-vehicle, self-collision, unreal-engine, Collision, question\
**Created:** [April 23, 2019, 1:38pm UTC](https://forums.unrealengine.com/t/how-to-build-a-composite-vehicle/447675 "2019-04-23T13:38:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Xeon-13](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Xeon-13](https://forums.unrealengine.com/u/Xeon-13)\
**Post date:** [April 23, 2019, 1:38pm UTC](https://forums.unrealengine.com/t/how-to-build-a-composite-vehicle/447675/1 "2019-04-23T13:38:33Z")

</div>

Hi

I’m trying to build a composite tank which can change parts during gameplay.

So far I have working WheeledVehicle (4 wheels) with my rigged model attached to it.

![274990-components.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/8/7/7870d2fb8d8638711b4b110579ed18bd00455f2a.png)

I have a problem with turret - if its close or intersecting body then tank starts shaking or even flying to the air.  
If I place it further away then there is visible gap which places limitation on design.  
Is there a way to avoid collisions between parent body and children?

 ![275004-tank2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/a/7/2a7a67c526d9ac52a044f8a1a31ca9c8108e03d6.png)

_I’d also like to implement different armor thickness on different faces.  
Could you please point me to a way how to define thickness of physics body at collision point?_

I’m very new to UE so please excuse me if these questions sound stupid.

Thanks

---

<div class="post-metadata">

**Author:** ![Doctor\_Kannon](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/doctor_kannon/32/1130101_2.png) [@Doctor\_Kannon](https://forums.unrealengine.com/u/Doctor_Kannon)\
**Post date:** [April 23, 2019, 5:45pm UTC](https://forums.unrealengine.com/t/how-to-build-a-composite-vehicle/447675/2 "2019-04-23T17:45:36Z")

</div>

What seems to be happening is that the physics of the turret is affecting the physics of the hull. You will need to tell the hull to ignore the turret.

Review this:

> **[Collision Filtering in Unreal Engine 4](https://www.unrealengine.com/en-US/blog/collision-filtering)**
>
> Choosing what collides is obviously very important, but it can be tricky, and it’s a problem that we have spent quite a while discussing while developing UE4. The system we have can seem a little complex at first, but it is very powerful and...

And this:

> **[Add a Custom Object Type to Your Project](https://docs.unrealengine.com/4.27/en-US/InteractiveExperiences/Physics/Collision/HowTo/AddCustomCollisionType/)**
>
> How To add a custom physics object channel to Unreal Engine 4.

Alternately, you may be able to attach the turret to the hull with a socket.

---

<div class="post-metadata">

**Author:** ![Doctor\_Kannon](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/doctor_kannon/32/1130101_2.png) [@Doctor\_Kannon](https://forums.unrealengine.com/u/Doctor_Kannon)\
**Post date:** [April 23, 2019, 5:48pm UTC](https://forums.unrealengine.com/t/how-to-build-a-composite-vehicle/447675/3 "2019-04-23T17:48:02Z")

</div>

The hull thickness is a separate topic. Best to create a new thread for that. For that I would use ray-tracing.
