Add isOnPlatform member to Player.