# Most performant way to set world location of several actors on a timeline for vehicle movement?

**URL:** <https://forums.unrealengine.com/t/most-performant-way-to-set-world-location-of-several-actors-on-a-timeline-for-vehicle-movement/1996549>\
**Category:** Programming & Scripting\
**Tags:** vehicle, unreal-engine, Platform\
**Created:** [August 29, 2024, 9:39am UTC](https://forums.unrealengine.com/t/most-performant-way-to-set-world-location-of-several-actors-on-a-timeline-for-vehicle-movement/1996549 "2024-08-29T09:39:40Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Supermatta321](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Supermatta321](https://forums.unrealengine.com/u/Supermatta321)\
**Post date:** [August 29, 2024, 9:39am UTC](https://forums.unrealengine.com/t/most-performant-way-to-set-world-location-of-several-actors-on-a-timeline-for-vehicle-movement/1996549/1 "2024-08-29T09:39:40Z")

</div>

Most performant way to set world location of several (20-50) actors on a timeline for vehicle movement?

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [August 29, 2024, 9:51am UTC](https://forums.unrealengine.com/t/most-performant-way-to-set-world-location-of-several-actors-on-a-timeline-for-vehicle-movement/1996549/2 "2024-08-29T09:51:22Z")

</div>

Put them all in a blueprint and move the blueprint 🙂

Seriously though, if you try and keep them as separate actors, it will run slowly…

---

<div class="post-metadata">

**Author:** ![Supermatta321](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Supermatta321](https://forums.unrealengine.com/u/Supermatta321)\
**Post date:** [August 29, 2024, 10:36am UTC](https://forums.unrealengine.com/t/most-performant-way-to-set-world-location-of-several-actors-on-a-timeline-for-vehicle-movement/1996549/3 "2024-08-29T10:36:46Z")

</div>

I guess this only works if they are moved with the same speed and direction? Or do you mean that there is a performance gain to move them relative to the blueprint?

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [August 29, 2024, 10:43am UTC](https://forums.unrealengine.com/t/most-performant-way-to-set-world-location-of-several-actors-on-a-timeline-for-vehicle-movement/1996549/4 "2024-08-29T10:43:54Z")

</div>

Sorry, not really clear on what you’re trying to do.

If this mixture of actors, the vehicle? Then I would say put them in a blueprint.

Or, are you trying to move the background, or…?

---

<div class="post-metadata">

**Author:** ![Supermatta321](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Supermatta321](https://forums.unrealengine.com/u/Supermatta321)\
**Post date:** [August 29, 2024, 10:47am UTC](https://forums.unrealengine.com/t/most-performant-way-to-set-world-location-of-several-actors-on-a-timeline-for-vehicle-movement/1996549/5 "2024-08-29T10:47:48Z")

</div>

Im trying to move vehicles such as trains, boats etc indepentent of each other, by setting their position often enough for it to run smoothly. If this is not the way to go, do you have other movement methods that might work better for vehicles such as these?

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [August 29, 2024, 10:50am UTC](https://forums.unrealengine.com/t/most-performant-way-to-set-world-location-of-several-actors-on-a-timeline-for-vehicle-movement/1996549/6 "2024-08-29T10:50:44Z")

</div>

Ok, so they’re all separate objects, and you want to set the location of many of them runtime.

You can either set their location from the level blueprint, if they are just a mesh, or independently for each one, if they’re blueprints.

I don’t think there would be any difference here. There’s no trick, really 🙂

Making each one a BP is the most elegant method, for sure. You also get to configure one central BP as the parent, and then each vehicle can’t inherit the methods from that one.

---

<div class="post-metadata">

**Author:** ![Supermatta321](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Supermatta321](https://forums.unrealengine.com/u/Supermatta321)\
**Post date:** [August 29, 2024, 10:51am UTC](https://forums.unrealengine.com/t/most-performant-way-to-set-world-location-of-several-actors-on-a-timeline-for-vehicle-movement/1996549/7 "2024-08-29T10:51:58Z")

</div>

I see, thanks 😃 So none of the movement components or other systems that might make vehicle movement more performant? I dont want to use physics, as it is so unpredictable…

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [August 29, 2024, 10:54am UTC](https://forums.unrealengine.com/t/most-performant-way-to-set-world-location-of-several-actors-on-a-timeline-for-vehicle-movement/1996549/8 "2024-08-29T10:54:13Z")

</div>

It really depends on what you want.

If they are going to be real vehicles, and you might want control them, then you need to probably go down the standard route and use a vehicle blueprint.

If they just objects moving around to give the impression of realism, then you can cut some corners, although having a parent blueprint is still a good idea. Especially if you want them to follow splines etc.

---

<div class="post-metadata">

**Author:** ![Supermatta321](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Supermatta321](https://forums.unrealengine.com/u/Supermatta321)\
**Post date:** [August 29, 2024, 12:22pm UTC](https://forums.unrealengine.com/t/most-performant-way-to-set-world-location-of-several-actors-on-a-timeline-for-vehicle-movement/1996549/9 "2024-08-29T12:22:10Z")

</div>

Yeah I have already created a movement system for boats, trains and wagons using set location, but I am looking for ways to optimise this movement. If anyone have suggestions for parameters that can be tweeked or ways to update the location that might improve performance, I would be very happy to hear them 😃

---

<div class="post-metadata">

**Author:** ![3dRaven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/3draven/32/906552_2.png) [@3dRaven](https://forums.unrealengine.com/u/3dRaven)\
**Post date:** [August 29, 2024, 2:10pm UTC](https://forums.unrealengine.com/t/most-performant-way-to-set-world-location-of-several-actors-on-a-timeline-for-vehicle-movement/1996549/10 "2024-08-29T14:10:38Z")

</div>

If you were to rely on ticks for movement (like trains on splines) then you could consider aggregating the tick of all railway wagon’s to their driving train, or to a single controller.

The recent unreal talk mentions this at around 24:24

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/f/a/ffa6de72f0f43c076f6965cf4470ea79c8bfa6e6.jpeg "Optimizing the Game Thread | Unreal Fest 2024") ](https://www.youtube.com/watch?v=KxREK-DYu70)

---

<div class="post-metadata">

**Author:** ![Supermatta321](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Supermatta321](https://forums.unrealengine.com/u/Supermatta321)\
**Post date:** [August 30, 2024, 8:34am UTC](https://forums.unrealengine.com/t/most-performant-way-to-set-world-location-of-several-actors-on-a-timeline-for-vehicle-movement/1996549/11 "2024-08-30T08:34:25Z")

</div>

Thankyou! Any tips is very appreciated 😃
