in update function you have
rigidbody.velocity.y = 7;
and in OnCollisionStay function you have
rigidbody.velocity.y = -7;
shouldn’t they both be
rigidbody.velocity.y = 7;
?
in update function you have
rigidbody.velocity.y = 7;
and in OnCollisionStay function you have
rigidbody.velocity.y = -7;
shouldn’t they both be
rigidbody.velocity.y = 7;
?