-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Skater can fall out of loop track #166
Labels
Comments
I made a test track in the above commit to reproduce this but it doesn't happen too consistently. I don't see anything incorrect about the energy when it happens, but somehow the calculation in EnergySkateParkModel.crossedTrack is returning false. |
In lineSegmentIntersection, we are not hitting this case and so my theory may be incorrect. const denom = ( x1 - x2 ) * ( y3 - y4 ) - ( y1 - y2 ) * ( x3 - x4 );
// If denominator is 0, the lines are parallel or coincident
if ( Math.abs( denom ) < 1e-10 ) {
console.log( 'parallel' );
return null;
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
From phetsims/energy-skate-park-basics#421
There is a looped track where the skater can fall out of the track, even with no friction. The following recording demonstrates.
https://drive.google.com/open?id=1FqS6lNk8VcYjdsTcIfmeRCSKk04cgGd6
This was assigned low priority.
The text was updated successfully, but these errors were encountered: