Skip to content

Instantly share code, notes, and snippets.

@svenstaro
Created October 18, 2014 18:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save svenstaro/244064be0b29bc091411 to your computer and use it in GitHub Desktop.
Save svenstaro/244064be0b29bc091411 to your computer and use it in GitHub Desktop.
impl<T> HasBoundingVolume<T> for Player {
fn bounding_volume(&self) -> BoundingVolume {
self.shape.aabb(self.position)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment