MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / object_object_AABB

Function object_object_AABB

Descent3/renderobject.cpp:763–770  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

761 }
762}
763static inline bool object_object_AABB(object *obj1, object *obj2) {
764 bool overlap = true;
765 if (obj1->max_xyz.x < obj2->min_xyz.x || obj2->max_xyz.x < obj1->min_xyz.x || obj1->max_xyz.z < obj2->min_xyz.z ||
766 obj2->max_xyz.z < obj1->min_xyz.z || obj1->max_xyz.y < obj2->min_xyz.y || obj2->max_xyz.y < obj1->min_xyz.y)
767 overlap = false;
768
769 return overlap;
770}
771// Given a face, computes the upper left corner of the face
772void ComputeDebugVisFaceUpperLeft(room *rp, face *fp, vector *upper_left, float *xdiff, float *ydiff, vector *center) {
773 matrix face_matrix, trans_matrix;

Callers 1

DrawDebugInfoFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected