summaryrefslogtreecommitdiffhomepage
path: root/examples/physics
diff options
context:
space:
mode:
authorRay <[email protected]>2021-04-26 00:36:22 +0200
committerRay <[email protected]>2021-04-26 00:36:22 +0200
commitbb3303338979dde40168928efc6ea31ed776407d (patch)
tree3c9e4652db2f54240655a39202dd73c06520034b /examples/physics
parenta44815e9395e63644e4adeac928155f1e465aed7 (diff)
parent30db611e924ad2ad61137a944a0da4257045cd5f (diff)
downloadraylib-bb3303338979dde40168928efc6ea31ed776407d.tar.gz
raylib-bb3303338979dde40168928efc6ea31ed776407d.zip
Merge branch 'master' of https://github.com/raysan5/raylib
Diffstat (limited to 'examples/physics')
-rw-r--r--examples/physics/physics_shatter.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/physics/physics_shatter.c b/examples/physics/physics_shatter.c
index e996a372..d14e9ba6 100644
--- a/examples/physics/physics_shatter.c
+++ b/examples/physics/physics_shatter.c
@@ -35,7 +35,7 @@ int main(void)
SetPhysicsGravity(0, 0);
// Create random polygon physics body to shatter
- CreatePhysicsBodyPolygon((Vector2){ screenWidth/2, screenHeight/2 }, GetRandomValue(80, 200), GetRandomValue(3, 8), 10);
+ CreatePhysicsBodyPolygon((Vector2){ screenWidth/2.0f, screenHeight/2.0f }, GetRandomValue(80, 200), GetRandomValue(3, 8), 10);
SetTargetFPS(60); // Set our game to run at 60 frames-per-second
//--------------------------------------------------------------------------------------
@@ -50,7 +50,7 @@ int main(void)
{
ResetPhysics();
- CreatePhysicsBodyPolygon((Vector2){ screenWidth/2, screenHeight/2 }, GetRandomValue(80, 200), GetRandomValue(3, 8), 10);
+ CreatePhysicsBodyPolygon((Vector2){ screenWidth/2.0f, screenHeight/2.0f }, GetRandomValue(80, 200), GetRandomValue(3, 8), 10);
}
if (IsMouseButtonPressed(MOUSE_LEFT_BUTTON)) // Physics shatter input