aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/Rigidbody.h
diff options
context:
space:
mode:
authorJAROWMR <jarorutjes07@gmail.com>2024-12-02 13:33:19 +0100
committerJAROWMR <jarorutjes07@gmail.com>2024-12-02 13:33:19 +0100
commit0a867effdb02e35181ee31c36960aed05e19ac64 (patch)
tree9b0a057cd1cfe9fbb1cee1a582ef3509b9d059b2 /src/crepe/api/Rigidbody.h
parent515efdd82326e91596895a5e9b2bbf4925f175a1 (diff)
feedback fix
Diffstat (limited to 'src/crepe/api/Rigidbody.h')
-rw-r--r--src/crepe/api/Rigidbody.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/crepe/api/Rigidbody.h b/src/crepe/api/Rigidbody.h
index 7939563..446c5dd 100644
--- a/src/crepe/api/Rigidbody.h
+++ b/src/crepe/api/Rigidbody.h
@@ -52,9 +52,9 @@ public:
*/
struct Data {
//! objects mass
- double mass = 0.0;
+ float mass = 0.0;
//! gravtiy scale
- double gravity_scale = 0.0;
+ float gravity_scale = 0.0;
//! Changes if physics apply
BodyType body_type = BodyType::DYNAMIC;
//! linear velocity of object
@@ -64,11 +64,11 @@ public:
//! linear damping of object
vec2 linear_damping;
//! angular velocity of object
- double angular_velocity = 0.0;
+ float angular_velocity = 0.0;
//! max angular velocity of object
- double max_angular_velocity = INFINITY;
+ float max_angular_velocity = INFINITY;
//! angular damping of object
- double angular_damping = 0.0;
+ float angular_damping = 0.0;
//! movements constraints of object
PhysicsConstraints constraints;
//! if gravity applies
@@ -76,7 +76,7 @@ public:
//! if object bounces
bool bounce = false;
//! bounce factor of material
- double elastisity = 0.0;
+ float elastisity = 0.0;
//! offset of all colliders relative to transform position
vec2 offset;
};
@@ -102,7 +102,7 @@ public:
*
* \param force Vector2 that is added to the angular force.
*/
- void add_force_angular(double force);
+ void add_force_angular(float force);
};
} // namespace crepe