diff options
author | max-001 <maxsmits21@kpnmail.nl> | 2024-11-07 19:24:24 +0100 |
---|---|---|
committer | max-001 <maxsmits21@kpnmail.nl> | 2024-11-07 19:24:24 +0100 |
commit | f49c93a5dfc0aeb5c0087cc9adfeb68526a2b0a7 (patch) | |
tree | d9bdec5dfad314c42569297e74612588daf99653 /src/crepe/api/Rigidbody.cpp | |
parent | 7131a94fcfab041cb2dbaccefadb12d1db022d73 (diff) |
Make format
Diffstat (limited to 'src/crepe/api/Rigidbody.cpp')
-rw-r--r-- | src/crepe/api/Rigidbody.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/crepe/api/Rigidbody.cpp b/src/crepe/api/Rigidbody.cpp index cf07b0e..0de9846 100644 --- a/src/crepe/api/Rigidbody.cpp +++ b/src/crepe/api/Rigidbody.cpp @@ -2,9 +2,8 @@ using namespace crepe; -crepe::Rigidbody::Rigidbody(uint32_t game_object_id, - const RigidbodyData & data) : - Component(game_object_id), data(data){} +crepe::Rigidbody::Rigidbody(uint32_t game_object_id, const RigidbodyData & data) + : Component(game_object_id), data(data) {} void crepe::Rigidbody::add_force_linear(const Vector2 & force) { this->data.linear_velocity += force; @@ -13,4 +12,3 @@ void crepe::Rigidbody::add_force_linear(const Vector2 & force) { void crepe::Rigidbody::add_force_angular(double force) { this->data.angular_velocity += force; } - |