summaryrefslogtreecommitdiffhomepage
path: root/examples/physac
diff options
context:
space:
mode:
authorRay <[email protected]>2019-05-27 00:18:15 +0200
committerRay <[email protected]>2019-05-27 00:18:15 +0200
commit87774a0a21f8d2998b4dc13e989005270476ae92 (patch)
tree4228376c752b1760be44cc8582725ecac522939b /examples/physac
parent241c4c8d14225bdf30c168802d4b16b59d5043e0 (diff)
downloadraylib-87774a0a21f8d2998b4dc13e989005270476ae92.tar.gz
raylib-87774a0a21f8d2998b4dc13e989005270476ae92.zip
Review variables initialization
Diffstat (limited to 'examples/physac')
-rw-r--r--examples/physac/physics_friction.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/physac/physics_friction.c b/examples/physac/physics_friction.c
index cbb9dc43..0acf88ae 100644
--- a/examples/physac/physics_friction.c
+++ b/examples/physac/physics_friction.c
@@ -61,8 +61,8 @@ int main(void)
SetPhysicsBodyRotation(bodyA, 30*DEG2RAD);
PhysicsBody bodyB = CreatePhysicsBodyRectangle((Vector2){ screenWidth - 35, screenHeight*0.6f }, 40, 40, 10);
- bodyB->staticFriction = 1;
- bodyB->dynamicFriction = 1;
+ bodyB->staticFriction = 1.0f;
+ bodyB->dynamicFriction = 1.0f;
SetPhysicsBodyRotation(bodyB, 330*DEG2RAD);
SetTargetFPS(60); // Set our game to run at 60 frames-per-second