Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //if can push and holds button for pushing
- other.GetComponent<Rigidbody>().AddForce(new Vector3(player.moveInput.x*player.speed*mass, player.moveInput.y * player.speed * mass, player.moveInput.z * player.speed * mass), ForceMode.Impulse);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement