# Modular vehicle \[WIP\]

**URL:** <https://forums.unrealengine.com/t/modular-vehicle-wip/69919>\
**Category:** Game Development\
**Tags:** unreal-engine, Work-in-Progress, Showcase\
**Created:** [July 26, 2016, 11:49am UTC](https://forums.unrealengine.com/t/modular-vehicle-wip/69919 "2016-07-26T11:49:50Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kelheor](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kelheor](https://forums.unrealengine.com/u/Kelheor)\
**Post date:** [July 26, 2016, 11:49am UTC](https://forums.unrealengine.com/t/modular-vehicle-wip/69919/1 "2016-07-26T11:49:50Z")

</div>

![ModularVehicle_FeaturedNew.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/9/5/953c3156935255e437100a99efc5ff164f4ec0b8.png)

**[Latest version now available on UE Marketplace](https://www.unrealengine.com/marketplace/modular-vehicle)**

I’m working on modular vehicle.  
In this thread I will be publishing my progress.

**Features:**  
3 game-ready vehicles: 2K48 “Skythe”, 2K46 “Discovery”, 2K44 “”  
All blueprints structured and well-commented  
N-wheeled vehicle support  
HUD support  
Customizable PBR master material for vehicle  
Camouflage support (up to 3 masks)  
Different anti-stuck measures(savepoints, automatic and manual respawn, wheel jumpers)  
Customized first person character to play  
Ability to enter/exit vehicle  
2 types of camera for vehicle.  
Camera zoom.  
Demo landscape  
Simple Day/Night cycle  
Basic enemy character AI: can find target and attack  
Basic enemy vehicle AI: can find a path to waypoint, can follow to the target  
Basic enemy aircraft AI: can fly to waypoint.  
Health/Damage system(with environment support)  
Material for destroyed vehicle/aircraft  
Cloaking field support  
121 vehicle parts  
Headlights  
APEX destructibles  
7 projectiles blueprints, including laser, different types of bullets and rockets with different targeting capabilities.  
Rocket turret  
Rocket pod  
Laser turret  
Gatling gun  
Mine trawl/Grinder  
Railgun  
Anti-Air turret  
Flamethrower  
Generator module  
Stoppers  
Cargo Bay

Number of Blueprints: 80  
Number of Meshes: 143  
Number of Textures: 110  
Number of Materials: 42  
Number of Audio tracks: 11  
Number of Audio Cues: 11  
Number of Effects: 14  
Number of Animations: 4  
Number of C++ classes: 4

**Latest video will be here:**

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/f/9/0f9f3e47be34f216809bbfaaed91ca6e951c34ad.jpeg "Modular Vehicle Test #13") ](https://www.youtube.com/watch?v=GmzhSStt1p4)

**Some images:**

 ![1.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/f/0/f0573349b4f8dcd091d6847e05482458f1c08bea.jpeg)

 ![ModularVehicle_FeaturedNew.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/d/c/2dce3efdb6852776411bfda7a09d9d1f78a825a3.png)

 ![1.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/f/0/f0573349b4f8dcd091d6847e05482458f1c08bea.jpeg)

---

<div class="post-metadata">

**Author:** ![Kelheor](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kelheor](https://forums.unrealengine.com/u/Kelheor)\
**Post date:** [July 26, 2016, 3:07pm UTC](https://forums.unrealengine.com/t/modular-vehicle-wip/69919/2 "2016-07-26T15:07:23Z")

</div>

First test in UE4 after 2 weeks of making 3d models.  
Now I can drive this vehicle.

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/5/0/750162e25fe3877e695fae8b09e278d74f1103e1.jpeg "Modular Vehicle Test#1 - Hello, Physics!") ](https://www.youtube.com/watch?v=4hcZRXIwGSk)

---

<div class="post-metadata">

**Author:** ![Kelheor](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kelheor](https://forums.unrealengine.com/u/Kelheor)\
**Post date:** [July 28, 2016, 3:35pm UTC](https://forums.unrealengine.com/t/modular-vehicle-wip/69919/3 "2016-07-28T15:35:44Z")

</div>

I added animations for turret and stoppers.  
Also, turret now can fire with guns and rockets.  
Two types of cameras are available: basic and free.  
Turret works as a standalone controllable pawn, so it can be used anywhere.  
Stoppers activates handbrakes, stops vehicle and prevents it further movement until they will be deactivated.

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/2/6/a2696203723eb783f4fb5d6c248ac3f4f0ee4517.jpeg "Modular Vehicle Test #2: Basic Animations") ](https://www.youtube.com/watch?v=u4ygPq4RiFY)

---

<div class="post-metadata">

**Author:** ![Kelheor](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kelheor](https://forums.unrealengine.com/u/Kelheor)\
**Post date:** [July 29, 2016, 5:57pm UTC](https://forums.unrealengine.com/t/modular-vehicle-wip/69919/4 "2016-07-29T17:57:27Z")

</div>

The first attempt to make destructible meshes in PhysX Lab by Nvidia to get more control over chunk behaviour.  
Also in video you can see new module for vehicle: **Gatling gun.**  
Each module can be placed anywhere and activated/deactivated through module interface.

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/9/e/c9ef56be6a4ead6201233bc10c4a40b3b2b49b02.jpeg "Modular Vehicle Test #3: Apex Destruction") ](https://www.youtube.com/watch?v=tj4nD1hFiXU)

---

<div class="post-metadata">

**Author:** ![Geodav](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/geodav/32/1008648_2.png) [@Geodav](https://forums.unrealengine.com/u/Geodav)\
**Post date:** [July 29, 2016, 7:39pm UTC](https://forums.unrealengine.com/t/modular-vehicle-wip/69919/5 "2016-07-29T19:39:53Z")

</div>

nice work so far, as for the destructables i suggest fixing the bottom section to the floor, it just 1 or 2 clicks in apex, been that long since i touch apex stuff !

---

<div class="post-metadata">

**Author:** ![Kelheor](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kelheor](https://forums.unrealengine.com/u/Kelheor)\
**Post date:** [July 30, 2016, 10:11am UTC](https://forums.unrealengine.com/t/modular-vehicle-wip/69919/6 "2016-07-30T10:11:53Z")

</div>

> [@Geodav;572925](#):
>
> nice work so far, as for the destructables i suggest fixing the bottom section to the floor, it just 1 or 2 clicks in apex, been that long since i touch apex stuff !

Thanks! I think I found this setting: Assets tab -\> Support settings -\> World overlap.

---

<div class="post-metadata">

**Author:** ![Kelheor](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kelheor](https://forums.unrealengine.com/u/Kelheor)\
**Post date:** [July 30, 2016, 8:36pm UTC](https://forums.unrealengine.com/t/modular-vehicle-wip/69919/7 "2016-07-30T20:36:31Z")

</div>

**New update:**

- Rocket pod
- Rocket turret (prototype: [TOS-1 - Wikipedia](https://en.wikipedia.org/wiki/TOS-1))
- Destructible meshes update.

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/9/2/f92057569ec8a609a899f70fd4a652c74e951036.jpeg "Modual Vehicle Test #4: RocketWorks") ](https://www.youtube.com/watch?v=MmK1yu1QLyQ)

---

<div class="post-metadata">

**Author:** ![order66](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/order66/32/906575_2.png) [@order66](https://forums.unrealengine.com/u/order66)\
**Post date:** [July 30, 2016, 10:50pm UTC](https://forums.unrealengine.com/t/modular-vehicle-wip/69919/8 "2016-07-30T22:50:02Z")

</div>

Nice. You intend to put it up on the marketplace?

---

<div class="post-metadata">

**Author:** ![Kelheor](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kelheor](https://forums.unrealengine.com/u/Kelheor)\
**Post date:** [July 31, 2016, 11:08am UTC](https://forums.unrealengine.com/t/modular-vehicle-wip/69919/9 "2016-07-31T11:08:39Z")

</div>

> [@order66;573371](#):
>
> Nice. You intend to put it up on the marketplace?

Maybe. I don’t know yet.

---

<div class="post-metadata">

**Author:** ![Kelheor](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kelheor](https://forums.unrealengine.com/u/Kelheor)\
**Post date:** [July 31, 2016, 2:34pm UTC](https://forums.unrealengine.com/t/modular-vehicle-wip/69919/10 "2016-07-31T14:34:58Z")

</div>

I made some improvements in materials.  
Now there is a master material for vehicle and global vehicle material instance, to change material parameters for all vehicle parts.  
Each vehicle part now using the material instance, so it’s also possible to tune only some parts of the vehicle.  
I’m planning to use this feature to add some effects(like a force field, cloaking field) to materials in future.

![6efbaf2c916864e851958e0ae9717003f00b145e.jpeg](https://d1ap1mz92jnks1.cloudfront.net/images/transparent.png)

---

<div class="post-metadata">

**Author:** ![Kelheor](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kelheor](https://forums.unrealengine.com/u/Kelheor)\
**Post date:** [August 1, 2016, 2:51pm UTC](https://forums.unrealengine.com/t/modular-vehicle-wip/69919/11 "2016-08-01T14:51:13Z")

</div>

I added generator module, which can be used with a different payload.  
Cloaking field payload now is ready.

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/9/7/d97773d7b55803cea8345ec4ab10bf7a2720bb8e.jpeg "Modular Vehicle Test #5: Cloak Generator") ](https://www.youtube.com/watch?v=FqgNJReioYU)

---

<div class="post-metadata">

**Author:** ![TechLord](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/techlord/32/1040563_2.png) [@TechLord](https://forums.unrealengine.com/u/TechLord)\
**Post date:** [August 1, 2016, 9:35pm UTC](https://forums.unrealengine.com/t/modular-vehicle-wip/69919/12 "2016-08-01T21:35:12Z")

</div>

I’m all for ‘customize-enabled’ modular vehicles and this is looking real sweet! I would say the more granular the modular parts are, the better. I can easily visualize customized weapons and armor pieces: Gun turret, Rocket turret, Gatling gun, Rocket pod, Shields.

Keep up the amazing work.

---

<div class="post-metadata">

**Author:** ![Kelheor](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kelheor](https://forums.unrealengine.com/u/Kelheor)\
**Post date:** [August 3, 2016, 5:56pm UTC](https://forums.unrealengine.com/t/modular-vehicle-wip/69919/13 "2016-08-03T17:56:11Z")

</div>

New corpus - 2K46 “Discovery” - ready to discover wastelands.  
Corpus features: 2 ultrasonic scanners, laser guidance system, EMP generator  
New module: Flamethrower.  
New feature: Headlights.

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/4/b/04bda33852fc24b3b42cb7e5cb3899145c21d0d9.jpeg "Modular Vehicle Test #6: 2K46 "Discovery"") ](https://www.youtube.com/watch?v=lHyX5SbzDJQ)

---

<div class="post-metadata">

**Author:** ![Kelheor](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kelheor](https://forums.unrealengine.com/u/Kelheor)\
**Post date:** [August 4, 2016, 11:28am UTC](https://forums.unrealengine.com/t/modular-vehicle-wip/69919/14 "2016-08-04T11:28:59Z")

</div>

I exported 76 vehicle parts from base models, so now it’s much easier to create vehicle variations.

 ![13.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/9/7/972cfd54d0c974aac4bbbee4d62b31e6dfaea87b.jpeg)

---

<div class="post-metadata">

**Author:** ![Kelheor](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kelheor](https://forums.unrealengine.com/u/Kelheor)\
**Post date:** [August 4, 2016, 4:42pm UTC](https://forums.unrealengine.com/t/modular-vehicle-wip/69919/15 "2016-08-04T16:42:13Z")

</div>

Just a first landscape test. A lot of work needs to be done.

![9b2d0f8ed611b34434ea76e79dac903c95108159.jpeg](https://d1ap1mz92jnks1.cloudfront.net/images/transparent.png)

![85133e3e26453655f2a43c52095b64a9c823a0c6.jpeg](https://d1ap1mz92jnks1.cloudfront.net/images/transparent.png)

![e5191a576d8c5e23f455d7ff7e4e1eb17dfd3722.jpeg](https://d1ap1mz92jnks1.cloudfront.net/images/transparent.png)

---

<div class="post-metadata">

**Author:** ![Kelheor](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kelheor](https://forums.unrealengine.com/u/Kelheor)\
**Post date:** [August 5, 2016, 8:11pm UTC](https://forums.unrealengine.com/t/modular-vehicle-wip/69919/17 "2016-08-05T20:11:26Z")

</div>

\*\*Project now supports N-wheeled vehicles. \*\*

I added support for PxVehicleDriveNW, so now all 8 wheels work physically correct(+/-, but before that I used copy bone node in animation blueprint).  
I also spent a day by tuning different vehicle settings, so now the vehicle is more stable when driving(landscapes, which I made previously, helped me a lot with seeking the bugs).

---

<div class="post-metadata">

**Author:** ![Kelheor](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kelheor](https://forums.unrealengine.com/u/Kelheor)\
**Post date:** [August 7, 2016, 9:40am UTC](https://forums.unrealengine.com/t/modular-vehicle-wip/69919/18 "2016-08-07T09:40:03Z")

</div>

**What’s new today:**  
Modular vehicle class hierarchy improvements  
Wheels SFX  
Simple Day/Night cycle  
Ability to enter/exit vehicle

**Anti-stuck measures:**  
Savepoint every minute  
Manual respawn to the last savepoint  
Auto-respawn on stuck to the last savepoint  
As a last resort, I’ve added jumpers as an anti-stuck device.

**Short video with current landscape:**

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/7/a/e7a1c9167ff48399b1c9ffd4ad33e74d7d09a77d.jpeg "Modular Vehicle Test #7: Landscape") ](https://www.youtube.com/watch?v=Zm7IihDflFs)

---

<div class="post-metadata">

**Author:** ![Kelheor](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kelheor](https://forums.unrealengine.com/u/Kelheor)\
**Post date:** [August 9, 2016, 1:41pm UTC](https://forums.unrealengine.com/t/modular-vehicle-wip/69919/19 "2016-08-09T13:41:13Z")

</div>

I added simple character AI, which follows to the player if it is in attack range(also I can execute attack method, but currently it’s doing nothing).  
Also after death of AI, it will activate ragdoll physics for body.  
There are also a lot of invisible improvements.

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/8/5/785fdaf0204361d232bd60df053ecce94d634212.jpeg "Modular Vehicle Test #8: Simple AI + Ragdoll") ](https://www.youtube.com/watch?v=KsOSSijLk0M)

---

<div class="post-metadata">

**Author:** ![Kelheor](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kelheor](https://forums.unrealengine.com/u/Kelheor)\
**Post date:** [August 11, 2016, 12:22pm UTC](https://forums.unrealengine.com/t/modular-vehicle-wip/69919/20 "2016-08-11T12:22:13Z")

</div>

I’ve added simple vehicle and aircraft AI.  
They can follow to the checkpoints and react on projectiles.

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/1/e/d1ed3b5337abcaeab920fd514d9f60f69ed970d6.jpeg "Modular Vehicle Test #9: Vehicle and Aircraft AI.") ](https://www.youtube.com/watch?v=G61cfrXdhqM)

---

<div class="post-metadata">

**Author:** ![Kelheor](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kelheor](https://forums.unrealengine.com/u/Kelheor)\
**Post date:** [August 11, 2016, 11:20pm UTC](https://forums.unrealengine.com/t/modular-vehicle-wip/69919/21 "2016-08-11T23:20:18Z")

</div>

I’ve improved navigation system for vehicle AI. Now I’m building path to the waypoint by using NavMesh data, if it’s possible. It means that vehicle can avoid different objects in level. It’s not support dynamic path rebuilding, which means if path to the waypoint was builded, then vehicle will try to go there even if level structure was changed.

To fix that, I’ve added some logic to avoid objects dynamically.

I’m not using linetrace for that, because I don’t know final form and size of the vehicle(due to modularity). Instead of this, I have smart movement checks. For example, if vehicle going stuck, I’m trying to change vehicle direction. There is a lot of different parameters to customize vehicle movement logic.

In video you can see work of current navigation system. Because current vehicle is rather big, it’s harder to set proper acceptance radius for waypoints(big value will be better for plain landscapes and low values for cities for example). Still need to adjust some timing parameters to react faster on collision with other objects, but it’s better than nothing and I will try to improve it later. White spikes are navigation points of current path to waypoint(they were added for debug purposes). It will be great, if somebody can advice me some tricks on how to improve navigation for vehicle.

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/6/4/b6460cefcd00db46221361ce6eba37f8ab1d8bc0.jpeg "Modular Vehicle Test #10: Vehicle Navigation System") ](https://www.youtube.com/watch?v=PSnnynDeQpQ)

[Next page](https://forums.unrealengine.com/t/modular-vehicle-wip/69919.md?page=2)
