You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't think it would be worth to add a new structure (for example, struct triangle) just for this case. But, a contact structure is probably necessary, since two primitives can have multiple contact points (multiple vectors):
structcontact {
uint32_tcount;
structvecv[6];
};
The text was updated successfully, but these errors were encountered:
I think it would be useful to have functions to detect intersection between primitives:
For 2D:
For 3D:
Then, more complex shapes would be only a combination of those. For example, intersection between rectangles would be checking 4 triangles.
Preliminary design for the functions:
I don't think it would be worth to add a new structure (for example,
struct triangle
) just for this case. But, acontact
structure is probably necessary, since two primitives can have multiple contact points (multiple vectors):The text was updated successfully, but these errors were encountered: