summaryrefslogtreecommitdiffhomepage
path: root/src/physac.h
diff options
context:
space:
mode:
authorRay <[email protected]>2020-10-05 20:04:33 +0200
committerRay <[email protected]>2020-10-05 20:04:33 +0200
commita4ea9f872ffef9ffe66fade37e984c3cc97910cb (patch)
treeb20ce1514e05c6685dd9d7e6859e3bdbcd5832e9 /src/physac.h
parenta8685ee4fd6eaba79fa53f4adf261d672947a000 (diff)
downloadraylib-a4ea9f872ffef9ffe66fade37e984c3cc97910cb.tar.gz
raylib-a4ea9f872ffef9ffe66fade37e984c3cc97910cb.zip
Review "aggregate initializations" #1403
Diffstat (limited to 'src/physac.h')
-rw-r--r--src/physac.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/physac.h b/src/physac.h
index d9b534b5..f03074dd 100644
--- a/src/physac.h
+++ b/src/physac.h
@@ -407,8 +407,8 @@ PHYSACDEF PhysicsBody CreatePhysicsBodyRectangle(Vector2 pos, float width, float
newBody->id = newId;
newBody->enabled = true;
newBody->position = pos;
- newBody->velocity = (Vector2){ 0.0f };
- newBody->force = (Vector2){ 0.0f };
+ newBody->velocity = (Vector2){ 0.0f, 0.0f };
+ newBody->force = (Vector2){ 0.0f, 0.0f };
newBody->angularVelocity = 0.0f;
newBody->torque = 0.0f;
newBody->orient = 0.0f;