Hi,
I’m trying to create a cube that will move randomly on the map while using physics, rolling around. However, when I turn on ‘Simulate Physics,’ the cube just falls and stops moving. How can I fix this?
Hi,
Generally speaking, you can have controllable movement, or you can have physics.
If you pause the game ( F8 ) during play, and select the actor in the outliner, you’ll find the actor pivot has indeed moved, but the cube not. Because it’s simulating physics.
Probably the most direct way to get around the problem, would just be to use physics to move the cube, best of both worlds. Use ‘add force’ or ‘add torque’ etc, and choose random vectors for the direction.
Another way, would be to carry on with move to, and write some code on tick to interp the cube position back to the pivot point. So the cube will eventually follow the actor in a sort of drunken manner.