# How to get attached actor velocity?

**URL:** <https://forums.unrealengine.com/t/how-to-get-attached-actor-velocity/2021547>\
**Category:** Blueprint\
**Tags:** actor, unreal-engine, velocity, question\
**Created:** [September 15, 2024, 8:47am UTC](https://forums.unrealengine.com/t/how-to-get-attached-actor-velocity/2021547 "2024-09-15T08:47:50Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![turbotanaka](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@turbotanaka](https://forums.unrealengine.com/u/turbotanaka)\
**Post date:** [September 15, 2024, 8:47am UTC](https://forums.unrealengine.com/t/how-to-get-attached-actor-velocity/2021547/1 "2024-09-15T08:47:50Z")

</div>

I want to get the independent speed of attached actors.  
Getting the parent’s speed will result in errors depending on the distance and position, and it will not work unless the parent is attached.  
For unknown reasons, the Get Velocity node does not work for attached actors. Get Component Velocity too.  
Actors do not use physics.  
Does anyone know how to do this?

---

<div class="post-metadata">

**Author:** ![VisAgilis](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/visagilis/32/891043_2.png) [@VisAgilis](https://forums.unrealengine.com/u/VisAgilis)\
**Post date:** [September 15, 2024, 9:10am UTC](https://forums.unrealengine.com/t/how-to-get-attached-actor-velocity/2021547/2 "2024-09-15T09:10:20Z")

</div>

Get Component Velocity node needs the physics to be enabled in order to work. But if you don’t want that, you can handle that calculation yourself the classic way, by storing it’s location _x_ seconds prior and subtracting the current one from that. That would give you the velocity, and you can get it’s magnitude by using the Vector Length node. Hope this helps! 😊

---

<div class="post-metadata">

**Author:** ![turbotanaka](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@turbotanaka](https://forums.unrealengine.com/u/turbotanaka)\
**Post date:** [September 15, 2024, 10:40am UTC](https://forums.unrealengine.com/t/how-to-get-attached-actor-velocity/2021547/3 "2024-09-15T10:40:51Z")

</div>

> But if you don’t want that, you can handle that calculation yourself the classic way, by storing it’s location _x_ seconds prior and subtracting the current one from that

Do I need a delay to do this?  
I think there is a problem when doing calculations with Tick.

---

<div class="post-metadata">

**Author:** ![VisAgilis](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/visagilis/32/891043_2.png) [@VisAgilis](https://forums.unrealengine.com/u/VisAgilis)\
**Post date:** [September 15, 2024, 11:32am UTC](https://forums.unrealengine.com/t/how-to-get-attached-actor-velocity/2021547/4 "2024-09-15T11:32:50Z")

</div>

Sure delay would work. What’s the problem though?

---

<div class="post-metadata">

**Author:** ![turbotanaka](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@turbotanaka](https://forums.unrealengine.com/u/turbotanaka)\
**Post date:** [September 15, 2024, 12:49pm UTC](https://forums.unrealengine.com/t/how-to-get-attached-actor-velocity/2021547/5 "2024-09-15T12:49:22Z")

</div>

I haven’t heard much about combining delay and tick.  
I am concerned about performance problem.  
If i have many actors that execute this process, the Delay to wait for the process will be executed massive times in ticks.

---

<div class="post-metadata">

**Author:** ![VisAgilis](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/visagilis/32/891043_2.png) [@VisAgilis](https://forums.unrealengine.com/u/VisAgilis)\
**Post date:** [September 15, 2024, 12:58pm UTC](https://forums.unrealengine.com/t/how-to-get-attached-actor-velocity/2021547/6 "2024-09-15T12:58:14Z")

</div>

The blueprints don’t run nodes the same way your lines are run in C++. Blueprints always execute the code constantly no matter if there’s a delay or not, the delay node only affects the nodes that come after it and for the nodes before that, no delay is applied. As I said, they already get triggered constantly. So if you have any other nodes that are connected to the Event Tick node, they also get triggered every tick just like your delay node. There isn’t an additional process going on to cut the execution of the nodes before the delay.

* * *

Also, why are we stuck on delay anyways? 😅 It’s not the only way to achieve this goal. You can also use timers if you don’t want to use that.

_(I was trying out the new line seperator thing I just found 🤣 )_

---

<div class="post-metadata">

**Author:** ![turbotanaka](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@turbotanaka](https://forums.unrealengine.com/u/turbotanaka)\
**Post date:** [September 15, 2024, 1:24pm UTC](https://forums.unrealengine.com/t/how-to-get-attached-actor-velocity/2021547/7 "2024-09-15T13:24:48Z")

</div>

Okay, I’ll give it a try. Thank you very much.

---

<div class="post-metadata">

**Author:** ![baobao4435](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/baobao4435/32/950790_2.png) [@baobao4435](https://forums.unrealengine.com/u/baobao4435)\
**Post date:** [September 15, 2024, 1:26pm UTC](https://forums.unrealengine.com/t/how-to-get-attached-actor-velocity/2021547/8 "2024-09-15T13:26:52Z")

</div>

To add a bit.  
it’s better to calculate every tick. because the movement happens every tick.  
you can do this

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/0/a/a0a3d52b4dd1236d141dd12c249ce2670c4a2b78.jpeg)  
and if it’s a component just swap the get actor location to get component world location

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [October 15, 2024, 1:27pm UTC](https://forums.unrealengine.com/t/how-to-get-attached-actor-velocity/2021547/9 "2024-10-15T13:27:00Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
