0
votes

in Unity 5.5, I'm trying to move a 2D gameObject via physics2D, but it remains unaffected. I'm a newbie, but I've already done an arkanoid clone, so moving an object shouldn't be a problem.

Moving by transform works, gravity, addForce, .velocity are not working. Or to be precise they are working, but not moving the object. Adding impulse changes the velocity of the rigidbody2D (adding force does not), but the position of my gameObject remains the same. I logged timeScale in the update function, so the game is not paused, and it's updating properly, the input is also working fine.

Relevant informations:

GameObject and Project's physics2D properties

Script and runtime properties

1

1 Answers

1
votes

You have the Simulated checkbox unchecked, that means the RigidBody2D is not simulated by the physics systems. The forces you are applying must be simulated on the body for them to take any affect.