How to make UI Buttons Move Rigidbody Entity

Ok so basicallly I want when you press the left button onscreen the button makes the entity(‘ball’)
move left or right,or forward or even down.Any ideas?

This should get you headed in the right direction. https://developer.playcanvas.com/en/tutorials/Using-forces-on-rigid-bodies/.

You have to use forces/impulses or directly set linearVelocity to move a rigidbody.

Let me know if this helps at all!

1 Like