aboutsummaryrefslogtreecommitdiff
path: root/src/raylib.h
diff options
context:
space:
mode:
authorraysan5 <raysan5@gmail.com>2016-02-13 17:09:53 +0100
committerraysan5 <raysan5@gmail.com>2016-02-13 17:09:53 +0100
commited1906440560d5b6b6e2cb1c1927e53b28e302db (patch)
treed03803dbbf00983f0a693df75b1dcfd3ee78c7c3 /src/raylib.h
parent94c92a58a1a8131c4d71ba32f18e836f6178231c (diff)
downloadraylib-ed1906440560d5b6b6e2cb1c1927e53b28e302db.tar.gz
raylib-ed1906440560d5b6b6e2cb1c1927e53b28e302db.zip
Reviewed physics module
A deeper revision required, not clear enough for the user Key: Create a PhysicObjects pool
Diffstat (limited to 'src/raylib.h')
-rw-r--r--src/raylib.h13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/raylib.h b/src/raylib.h
index c2067a0e..43819b14 100644
--- a/src/raylib.h
+++ b/src/raylib.h
@@ -466,13 +466,6 @@ typedef enum { CAMERA_CUSTOM = 0, CAMERA_FREE, CAMERA_ORBITAL, CAMERA_FIRST_PERS
// Collider types
typedef enum { COLLIDER_CIRCLE, COLLIDER_RECTANGLE, COLLIDER_CAPSULE } ColliderType;
-// Physics struct
-typedef struct Physics {
- bool enabled;
- bool debug; // Should be used by programmer for testing purposes
- Vector2 gravity;
-} Physics;
-
// Transform struct
typedef struct Transform {
Vector2 position;
@@ -808,10 +801,10 @@ void SetShaderMap(Shader *shader, int mapLocation, Texture2D texture, int textur
void SetBlendMode(int mode); // Set blending mode (alpha, additive, multiplied)
//----------------------------------------------------------------------------------
-// Physics System Functions (engine-module: physics)
+// Physics System Functions (engine-module: physac)
//----------------------------------------------------------------------------------
-void InitPhysics(void); // Initialize all internal physics values
-void SetPhysics(Physics settings); // Set physics settings values using Physics data type to overwrite internal physics settings
+void InitPhysics(int maxPhysicElements); // Initialize all internal physics values
+void UnloadPhysics(); // Unload physic elements arrays
void AddRigidbody(int index, Rigidbody rigidbody); // Initialize a new rigidbody with parameters to internal index slot
void AddCollider(int index, Collider collider); // Initialize a new Collider with parameters to internal index slot