ehsan-mohammadi / Doodle-Jump-Unity3D-Game

Doodle Jump game made with Unity3D in C#

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Force Fix

ghaem51 opened this issue · comments

if (-Other.relativeVelocity.y <= 0f)

fix:
if (-Other.relativeVelocity.y >= 0f)

commented

Thanks.
But for me "if (-Other.relativeVelocity.y <= 0f)" works fine. For me, the relative velocity is platform.velocity.y - doodler.velocity.y. "if (-Other.relativeVelocity.y >= 0f)" is correct when relative velocity = doodler.velocity.y - platform.velocity.y.

This may have occurred because Unity rigidbody has some bugs.