Podtrężenie kolizji dla 2 sztywnych ciał

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