gigue sur la collision pour 2 corps rigides
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