aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/Rigidbody.h
diff options
context:
space:
mode:
authormax-001 <maxsmits21@kpnmail.nl>2024-11-07 19:24:24 +0100
committermax-001 <maxsmits21@kpnmail.nl>2024-11-07 19:24:24 +0100
commitf49c93a5dfc0aeb5c0087cc9adfeb68526a2b0a7 (patch)
treed9bdec5dfad314c42569297e74612588daf99653 /src/crepe/api/Rigidbody.h
parent7131a94fcfab041cb2dbaccefadb12d1db022d73 (diff)
Make format
Diffstat (limited to 'src/crepe/api/Rigidbody.h')
-rw-r--r--src/crepe/api/Rigidbody.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/crepe/api/Rigidbody.h b/src/crepe/api/Rigidbody.h
index 0c069d8..e1abd46 100644
--- a/src/crepe/api/Rigidbody.h
+++ b/src/crepe/api/Rigidbody.h
@@ -37,17 +37,18 @@ public:
*/
struct PhysicsConstraints {
//! X constraint
- bool x = 0;
+ bool x = 0;
//! Y constraint
- bool y = 0;
+ bool y = 0;
//! rotation constraint
- bool rotation = 0;
+ bool rotation = 0;
};
+
public:
/**
* This struct holds the data for the Rigidbody.
*/
- struct RigidbodyData{
+ struct RigidbodyData {
//! objects mass
double mass = 0.0;
//! gravtiy scale
@@ -73,14 +74,16 @@ public:
//! if object bounces
bool bounce = false;
};
+
public:
/**
* \param game_object_id id of the gameobject the rigibody is added to.
* \param data struct to configure the rigidbody.
*/
- Rigidbody(uint32_t game_object_id,const RigidbodyData& data);
+ Rigidbody(uint32_t game_object_id, const RigidbodyData & data);
//! struct to hold data of rigidbody
RigidbodyData data;
+
public:
/**
* \brief add a linear force to the Rigidbody.