# How do I get actor to move vertically within random radius

**URL:** <https://forums.unrealengine.com/t/how-do-i-get-actor-to-move-vertically-within-random-radius/2370626>\
**Category:** Asset Creation\
**Tags:** unreal-engine, Blueprint, question\
**Created:** [March 2, 2025, 11:49pm UTC](https://forums.unrealengine.com/t/how-do-i-get-actor-to-move-vertically-within-random-radius/2370626 "2025-03-02T23:49:54Z")\
**Posts on this page:** 1\
**Showing post:** 6

<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:** [March 4, 2025, 6:21pm UTC](https://forums.unrealengine.com/t/how-do-i-get-actor-to-move-vertically-within-random-radius/2370626/6 "2025-03-04T18:21:56Z")

</div>

Hey @EN6A6E!

How’s this for a fish mindlessly swimming in the water? Don’t mind mine flying in the air, he’s trying his best alright 🥹

Here’s the whole thing:

 ![Screenshot 2025-03-04 211609](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/1/a/b1a369623507b4a256a2d65c4e2fa63adea1bf1f.png)

You _could_ also use a behavior tree and a blackboard, but I think it’s more practical to handle it inside the pawn blueprint since that’s the lil guy’s whole thing.

> [@EN6A6E](#):
>
> basic collision detection and path tracing

You can also make our fish move to another direction when it’s about to hit an obstacle by casting line traces infront of it.

Hope this helps 😊

---

_[View the full topic](https://forums.unrealengine.com/t/how-do-i-get-actor-to-move-vertically-within-random-radius/2370626)._
