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
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I wrote this to get the Four Sides of a Rectangle though i am sure there might be a bit better way.
`#include <stdbool.h>
#include "raylib.h"
struct SideHit {
bool top;
bool bottom;
bool left;
bool right;
}
SideHit detectSides(Rectangle Rec1, Rectangle Rec2) {
SideHit result = SideHit(false, false, false, false);
}`
Would be nice to see something like this on the Cheatsheet
All reactions