How do I get actor to move vertically within random radius

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 :face_holding_back_tears:

Here’s the whole thing:

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.

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 :blush:

1 Like