I am focused on using an arbitrary RBB (rotated bounding box). Not related to the mesh, just calculated. That's in the code, it works just the values are not being changed, but I did not know how to test a point against any 8 points making a rectangle that is rotated in any way.
I don't see how an amalgamation of AABB can achieve precisely what an RBB does.
I know what I am doing is very complicated, probably way more complicated than it needs to be, but I was hoping that I could at least get a non-zero result out of jo_vectorf structs.
Per-quad collision detection is not desired, as that should be in theory more complicated than what I want to do assuming I understood how to simplify what I want to do.
I can't fathom a way to compare a point against 8 other points that make segments that are not axis-aligned... the way I figured that could be done was project all the points on the X, Y, and Z axis vectors of the box, these projections make axis-aligned segments to that particular box (that is rotated), and if the point compared against the box overlaps with the segments then it collides (found by comparing the segments of "player" to "segment max" plus "player" to "segment min" is equal to "segment max" to "segment min".
Obviously the computationally intensive act of projecting what would end up being 16 points to 6 other vectors would be something that would be triggered by an AABB "physics proximity box" to make it faster.
I am not trying to compare if the "player" collides with the "ring". The core idea is if I can compare if the "player" or any given object is in any other given rotated rectangle area.. I'm sure you know that, but I don't see how an amalgamation of AABB can achieve that precisely.
So yes, I am trying to build a space rocket. Working comes first, simplification later. The core issue is why can I not change the value of a jo_vectorf struct. I do not specifically need these structs, as I could just make another function for inner product that does not need said struct, but I'd like to figure out why. and like i said, its probably something more basic about C programming than anything, as I am a newbie.
thanks for reading & replying