Object Pushing Using Physics In Unity
May 24, 2021
Physics is typically a tricky subject, especially when it comes to performance. So long as you’re only looking for something basic though, Unity makes getting started with physics easy.
In this example all we want to do is push a box around. Fortunately there are very few steps required for making this work.
That’s all there is to it, our player can now shove our box around as long as it remains kinematic. If we want the box to stop we can set isKinematic false, based on some other gameplay logic.