diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-07 20:03:14 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-07 20:03:14 +0100 |
commit | 3d2428af8e8d9d49b4ade52d4806a7dae4cf1ab8 (patch) | |
tree | 30d908c427ff9b4ee53402fbf52cb15704e58623 /src/crepe/api/Rigidbody.h | |
parent | fde229c24dcbd1ed844880a35eabddb88279802b (diff) |
merge #25 + nitpicking
Diffstat (limited to 'src/crepe/api/Rigidbody.h')
-rw-r--r-- | src/crepe/api/Rigidbody.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/crepe/api/Rigidbody.h b/src/crepe/api/Rigidbody.h index b12cf1d..68481f4 100644 --- a/src/crepe/api/Rigidbody.h +++ b/src/crepe/api/Rigidbody.h @@ -37,21 +37,20 @@ public: */ struct PhysicsConstraints { //! X constraint - bool x = 0; + bool x = false; //! Y constraint - bool y = 0; + bool y = false; //! rotation constraint - bool rotation = 0; + bool rotation = false; }; public: /** - * * \brief struct for Rigidbody data * * This struct holds the data for the Rigidbody. */ - struct RigidbodyData { + struct Data { //! objects mass double mass = 0.0; //! gravtiy scale @@ -83,9 +82,9 @@ 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 Data & data); //! struct to hold data of rigidbody - RigidbodyData data; + Data data; public: /** |