您好,老师,本来移动速度还可以,我在加载刚体后,移动速度变的非常慢,而且移动一卡一卡的,请问什么原因?
Speed = 3;
float h = Input.GetAxis("Horizontal");
float v = Input.GetAxis("Vertical");
Vector2 position = transform.position;
position.x = position.x +Speed*h*Time.deltaTime;
position.y = position.y +Speed*v*Time.deltaTime;
//transform.position = position;
Rigidbody2D.MovePosition(position);