Skip to content

Commit

Permalink
Added comment about falling through track, see #194
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Aug 20, 2014
1 parent db9d727 commit e91dcff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/model/EnergySkateParkBasicsModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,8 @@ define( function( require ) {

//Find the closest track
//TODO: Allocations
//TODO: Should find the closest track halfway between the current position and new position, but that introduced problematic behavior elsewhere
//The code below is less buggy overall, but can lead to cases where the skater "jumps" through the track when at a shallow angle
var closestTrackAndPositionAndParameter = this.getClosestTrackAndPositionAndParameter( new Vector2( skaterState.positionX, skaterState.positionY ), physicalTracks );
var track = closestTrackAndPositionAndParameter.track;
var u = closestTrackAndPositionAndParameter.u;
Expand Down

0 comments on commit e91dcff

Please sign in to comment.