diff options
| author | victorfisac <victorfisac@gmail.com> | 2016-01-20 19:26:52 +0100 |
|---|---|---|
| committer | victorfisac <victorfisac@gmail.com> | 2016-01-20 19:26:52 +0100 |
| commit | 8ae0da1fa1a9d462f95ee7cf02b0fc336c4a77df (patch) | |
| tree | 751d2c7303dc92780b027b122f26b09a4930e88b /src/physac.h | |
| parent | 25f5995be0f52c756052a9fff276bd11e95fc895 (diff) | |
| parent | cf6c6fefd76135df0247339c9adc2712da6c2691 (diff) | |
| download | raylib-8ae0da1fa1a9d462f95ee7cf02b0fc336c4a77df.tar.gz raylib-8ae0da1fa1a9d462f95ee7cf02b0fc336c4a77df.zip | |
Merge remote-tracking branch 'refs/remotes/raysan5/develop' into develop
Diffstat (limited to 'src/physac.h')
| -rw-r--r-- | src/physac.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/physac.h b/src/physac.h index 558673ef..12209987 100644 --- a/src/physac.h +++ b/src/physac.h @@ -32,7 +32,8 @@ //---------------------------------------------------------------------------------- // Types and Structures Definition //---------------------------------------------------------------------------------- -typedef enum { RectangleCollider, CircleCollider } ColliderType; +// Collider types +typedef enum { COLLIDER_CIRCLE, COLLIDER_RECTANGLE, COLLIDER_CAPSULE } ColliderType; // Physics struct typedef struct Physics { @@ -65,8 +66,8 @@ typedef struct Rigidbody { typedef struct Collider { bool enabled; ColliderType type; - Rectangle bounds; // Just used for RectangleCollider type - int radius; // Just used for CircleCollider type + Rectangle bounds; // Used for COLLIDER_RECTANGLE and COLLIDER_CAPSULE + int radius; // Used for COLLIDER_CIRCLE and COLLIDER_CAPSULE } Collider; #ifdef __cplusplus |
