Quantcast
Channel: Questions in topic: "addforce"
Viewing all articles
Browse latest Browse all 1264

myRigidbody.MovePosition influences the force.

$
0
0
Hello, somehow this part of my Code: > myRigidbody.MovePosition(targetPosition); influences this one: if (Input.GetMouseButtonDown(0)) { myRigidbody.velocity = Vector2.zero; myRigidbody.AddForce(new Vector2(0, upforce)); } in that way that the added force isnt as big it was without the moveposition code. Can someone help me?

Viewing all articles
Browse latest Browse all 1264

Trending Articles