Jitter em colisão para 2 corpos rígidos
private float speed = 5f;
private RigidBody2D body;
private void Awake()
{
body = GetComponent<RigidBody2D>();
}
private void FixedUpdate()
{
MoveObject();
}
void MoveObject()
{
//write movement code here
body.movePosition(new Vector2(for x movement, for y movement));
}
Perfect Porcupine