aboutsummaryrefslogtreecommitdiff
path: root/src/raylib.h
diff options
context:
space:
mode:
authorvictorfisac <victorfisac@gmail.com>2016-03-23 15:50:41 +0100
committervictorfisac <victorfisac@gmail.com>2016-03-23 15:50:41 +0100
commit60223a358b691c2769c362597c49e124b045209c (patch)
tree2850c0cbd1ec53e25cf70fd951518efd636b2066 /src/raylib.h
parentc453ac8265525fd7a88ed616c7e5bdf1e6d6b09f (diff)
downloadraylib-60223a358b691c2769c362597c49e124b045209c.tar.gz
raylib-60223a358b691c2769c362597c49e124b045209c.zip
Physac redesign (3/3)
Finally, physics update is handled in main thread using steps to get accuracy in collisions detection instead of moving it to a new thread. Examples are finished as simple and clear as I could. Finally, physac module is MORE simpler than in the first version, calculation everything by the same way for both types of physic objects. I tryed to add rotated physics a couple of times but I didn't get anything good to get a base to improve it. Maybe for the next version... No bugs or strange behaviours found during testing.
Diffstat (limited to 'src/raylib.h')
-rw-r--r--src/raylib.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/raylib.h b/src/raylib.h
index a87b58da..1782fef3 100644
--- a/src/raylib.h
+++ b/src/raylib.h
@@ -498,8 +498,8 @@ typedef enum { COLLIDER_CIRCLE, COLLIDER_RECTANGLE } ColliderType;
typedef struct Transform {
Vector2 position;
- float rotation;
- Vector2 scale;
+ float rotation; // Radians (not used)
+ Vector2 scale; // Just for rectangle physic objects, for circle physic objects use collider radius and keep scale as { 0, 0 }
} Transform;
typedef struct Rigidbody {