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?
↧