From c5663ca015e550ab8e2a43c10fa72db0aab7cac8 Mon Sep 17 00:00:00 2001 From: raysan5 Date: Wed, 20 Jan 2016 19:09:48 +0100 Subject: Some formatting tweaks --- src/physac.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/physac.h') diff --git a/src/physac.h b/src/physac.h index 558673ef..a1501ee3 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 { -- cgit v1.2.3 From cf6c6fefd76135df0247339c9adc2712da6c2691 Mon Sep 17 00:00:00 2001 From: raysan5 Date: Wed, 20 Jan 2016 19:23:58 +0100 Subject: Review some function names for consistency with raymath --- src/physac.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/physac.h') diff --git a/src/physac.h b/src/physac.h index a1501ee3..12209987 100644 --- a/src/physac.h +++ b/src/physac.h @@ -66,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 -- cgit v1.2.3