- Home /
Help me, push the box in the Sokovan game.
This is the script for the box object. The box-related collision detection was successful, but I don't know anything about pushing the box. What should I do? Scripts related to "hit" failed on the hit itself. This question was written through a translator.
Answer by $$anonymous$$ · Nov 16, 2020 at 07:58 AM
Use Rigidbody.AddForce()
Check this out might help https://docs.unity3d.com/ScriptReference/Rigidbody.AddForce.html
Your answer
Follow this Question
Related Questions
how to make a rotating object move in a specific direction on press of a button? 2 Answers
move object back and forth with joystick input 0 Answers
Best way to do smooth object movement and obstacle detection+animation reset ? 0 Answers
How to rotate UI element with Mouse 0 Answers
How to move an object to a height 1 Answer