How to keep an object rotation and location on a rolling object?

if you make a box a child of a physics ball, it will follow it as in the picture
02694154
but can you do this without making the box a child of the ball? just with something like “SetWorldLocation” ?

I’m sure there’s an easy way to do it, I just can’t figure it out.

Yeah, you can make the box an actor.
1.manually give it a little local offset as you like.
2.at event tick, set actor location =another actor’s location (your physics ball), and set actor rotation =000.

That way the actor will follow another, and rotation won’t change.

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