diff options
author | Jaro <59013720+JaroWMR@users.noreply.github.com> | 2024-12-12 18:47:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-12 18:47:54 +0100 |
commit | fd403d038b017ec8976023471073329896035e36 (patch) | |
tree | fcf4af55aa56b2de19e87e5246888e1af9f4f527 /src/crepe/api/Rigidbody.h | |
parent | 05a33d4793520fa84a93bc79882ef29d39cd08e5 (diff) | |
parent | ab1423f48d82ba9b0619ec107639a80773edbfc2 (diff) |
Merge pull request #64 from lonkaars/jaro/physics-system-improvement
Jaro/physics system improvement
Diffstat (limited to 'src/crepe/api/Rigidbody.h')
-rw-r--r-- | src/crepe/api/Rigidbody.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/crepe/api/Rigidbody.h b/src/crepe/api/Rigidbody.h index 40c6bf1..b08c8db 100644 --- a/src/crepe/api/Rigidbody.h +++ b/src/crepe/api/Rigidbody.h @@ -53,7 +53,7 @@ public: */ struct Data { //! objects mass - float mass = 0.0; + float mass = 1; /** * \brief Gravity scale factor. * @@ -79,7 +79,7 @@ public: //! Linear velocity of the object (speed and direction). vec2 linear_velocity; //! Maximum linear velocity of the object. This limits the object's speed. - vec2 max_linear_velocity = {INFINITY, INFINITY}; + float max_linear_velocity = INFINITY; //! Linear velocity coefficient. This scales the object's velocity for adjustment or damping. vec2 linear_velocity_coefficient = {1, 1}; //! \} |