Random object movement (how to?)

Hello guys, I’m trying to have a random mesh (object) movement inside a triggerbox or something else.
So the object should move by itself in a defined area (x,y,z) when the Event BeginPlay.
Is there a way to do this with blueprints?

3 Likes

you are a god, thank you!!

okay thanks that worked so far!
But the object jumps from one location to the other within the box.
I’m wondering if there is an option to make the movement smooth… do you have an idea?

So, make a new BP with just a collision box and a sphere:

294369-screenshot-2019-12-23-at-222140.png

and put this code in it:

294391-dec-23-2019-22-39-25.gif

Ah… now you’re moving the goal posts… :wink: gimme 5…

294392-dec-23-2019-22-51-50.gif

1 Like

Like this:

You can make it smoother by tinkering with the interp speed and timer event…

1 Like

Interp speed 3 is pretty good… :slight_smile:

1 Like