Question by
AstralBeaver · Jun 28, 2021 at 06:06 AM ·
c#collisioncollider2dissue
rb.velocity.y sometimes requires stopping on x axis as well.
I don't have the code currently, this will be a bit abridged.
void OnColliderStay2D (collision other) { if (rb.velocity.y == 0) { isJumping = false; } }
It works most of the time, but sometimes just doesn't reset the jump until the player stops moving on the x-axis. This is literally all the code for jump resetting.
Comment
Your answer
Follow this Question
Related Questions
Collision is not working with some Collider2d 1 Answer
,How to make a Univers Sand box Collision type thing.. [HELP PLZ] 0 Answers
Can't use SetActive (true) on collision 0 Answers
Collision inside a local function 2 Answers
Trying to figure out how to properly use my CircleCast Detection in my 2D Prototype 0 Answers