Please edit your post to use code-tags ; don’t post code as plain text.
You don’t control Rigidbody(2D) by modifying the Transform, that’s bypassing physics altogether. You use the Rigidbody(2D) API to effect movement.
Please edit your post to use code-tags ; don’t post code as plain text.
You don’t control Rigidbody(2D) by modifying the Transform, that’s bypassing physics altogether. You use the Rigidbody(2D) API to effect movement.