Skip to content

Bounding Boxes #3

Description

@ch4perone
  • Give Objects defined bounding boxes.
  • Implement AABB class.
  • Think about it.

AABB class is requested to fulfill accessibility requirements.

  • the upper and lower bounds (corner points) needs to be publicly accessible
  • there needs to be a function or at least efficient way to compute the volume of the box
  • the dimension x,y,z in terms of size needs to be accessible, tighs into the point above. If accessible aabb.size.x(), y and z the volume is obvious.
  • please think about whether it makes sense to have AABB * as pointer or class internal object AABB. I tend towards the last, but I don't know if that is feasible .. haven't given it much thought yet
  • please try this out by implementing getBoundingBox() in Object.h/cpp and auto construct Object with/without bounding box according to parameter set up (see main: bool GRID_ACCELERATION)
  • as said excessively play around with it, if AABB * as point, AABB must be destructed when Object is deleted. However we don't reallyy delete our objects (hmm bad-ish) think about it

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions