aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorraysan5 <raysan5@gmail.com>2016-06-02 19:16:11 +0200
committerraysan5 <raysan5@gmail.com>2016-06-02 19:16:11 +0200
commit2168d8aa1af1e60467983099c5f72b7ac5ab5144 (patch)
tree0f6961ca2cd23c2cced8404de6f8cdd1df70d5e4 /src
parentcafc66a3c18ae4b8adf2673dfecda1ad3604aaee (diff)
downloadraylib-2168d8aa1af1e60467983099c5f72b7ac5ab5144.tar.gz
raylib-2168d8aa1af1e60467983099c5f72b7ac5ab5144.zip
Removed DrawPhysicObjectInfo() function
To avoid additional dependencies
Diffstat (limited to 'src')
-rw-r--r--src/physac.c16
-rw-r--r--src/physac.h1
-rw-r--r--src/raylib.h1
3 files changed, 0 insertions, 18 deletions
diff --git a/src/physac.c b/src/physac.c
index eed2f26e..1d577d3d 100644
--- a/src/physac.c
+++ b/src/physac.c
@@ -570,22 +570,6 @@ Rectangle TransformToRectangle(Transform transform)
return (Rectangle){transform.position.x, transform.position.y, transform.scale.x, transform.scale.y};
}
-// Draw physic object information at screen position
-void DrawPhysicObjectInfo(PhysicObject pObj, Vector2 position, int fontSize)
-{
- // Draw physic object ID
- DrawText(FormatText("PhysicObject ID: %i - Enabled: %i", pObj->id, pObj->enabled), position.x, position.y, fontSize, BLACK);
-
- // Draw physic object transform values
- DrawText(FormatText("\nTRANSFORM\nPosition: %f, %f\nRotation: %f\nScale: %f, %f", pObj->transform.position.x, pObj->transform.position.y, pObj->transform.rotation, pObj->transform.scale.x, pObj->transform.scale.y), position.x, position.y, fontSize, BLACK);
-
- // Draw physic object rigidbody values
- DrawText(FormatText("\n\n\n\n\n\nRIGIDBODY\nEnabled: %i\nMass: %f\nAcceleration: %f, %f\nVelocity: %f, %f\nApplyGravity: %i\nIsGrounded: %i\nFriction: %f\nBounciness: %f", pObj->rigidbody.enabled, pObj->rigidbody.mass, pObj->rigidbody.acceleration.x, pObj->rigidbody.acceleration.y,
- pObj->rigidbody.velocity.x, pObj->rigidbody.velocity.y, pObj->rigidbody.applyGravity, pObj->rigidbody.isGrounded, pObj->rigidbody.friction, pObj->rigidbody.bounciness), position.x, position.y, fontSize, BLACK);
-
- DrawText(FormatText("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nCOLLIDER\nEnabled: %i\nBounds: %i, %i, %i, %i\nRadius: %i", pObj->collider.enabled, pObj->collider.bounds.x, pObj->collider.bounds.y, pObj->collider.bounds.width, pObj->collider.bounds.height, pObj->collider.radius), position.x, position.y, fontSize, BLACK);
-}
-
//----------------------------------------------------------------------------------
// Module specific Functions Definition
//----------------------------------------------------------------------------------
diff --git a/src/physac.h b/src/physac.h
index 6cef480a..b2ae2766 100644
--- a/src/physac.h
+++ b/src/physac.h
@@ -92,7 +92,6 @@ void ApplyForce(PhysicObject pObj, Vector2 force);
void ApplyForceAtPosition(Vector2 position, float force, float radius); // Apply radial force to all physic objects in range
Rectangle TransformToRectangle(Transform transform); // Convert Transform data type to Rectangle (position and scale)
-void DrawPhysicObjectInfo(PhysicObject pObj, Vector2 position, int fontSize); // Draw physic object information at screen position
#ifdef __cplusplus
}
diff --git a/src/raylib.h b/src/raylib.h
index bc2f658f..a00c0ff9 100644
--- a/src/raylib.h
+++ b/src/raylib.h
@@ -890,7 +890,6 @@ void ApplyForce(PhysicObject pObj, Vector2 force);
void ApplyForceAtPosition(Vector2 position, float force, float radius); // Apply radial force to all physic objects in range
Rectangle TransformToRectangle(Transform transform); // Convert Transform data type to Rectangle (position and scale)
-void DrawPhysicObjectInfo(PhysicObject pObj, Vector2 position, int fontSize); // Draw physic object information at screen position
//------------------------------------------------------------------------------------
// Audio Loading and Playing Functions (Module: audio)