-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
- 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
Metadata
Metadata
Assignees
Labels
No labels