Skip to content

Instantly share code, notes, and snippets.

@bomatson
Created March 14, 2014 21:22
Show Gist options
  • Save bomatson/9557244 to your computer and use it in GitHub Desktop.
Save bomatson/9557244 to your computer and use it in GitHub Desktop.
def determine_volume_from(velocity)
@volume = [[ 0, (velocity.abs/30).to_i ].max, 100].min
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment