diff options
author | JAROWMR <jarorutjes07@gmail.com> | 2024-11-20 10:43:32 +0100 |
---|---|---|
committer | JAROWMR <jarorutjes07@gmail.com> | 2024-11-20 10:43:32 +0100 |
commit | 690471c7c4536c074a4dca5aab7cc618d47bfb5f (patch) | |
tree | 35dcf3858b8f86a031cf5070de9caa069af4257d /src/example/physics.cpp | |
parent | d81ecc242ff88ffd49e0b5296dfb23ab54a0cd78 (diff) |
merge with maser
Diffstat (limited to 'src/example/physics.cpp')
-rw-r--r-- | src/example/physics.cpp | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/example/physics.cpp b/src/example/physics.cpp deleted file mode 100644 index ad663a0..0000000 --- a/src/example/physics.cpp +++ /dev/null @@ -1,24 +0,0 @@ -#include <crepe/Component.h> -#include <crepe/ComponentManager.h> -#include <crepe/api/GameObject.h> -#include <crepe/api/Rigidbody.h> -#include <crepe/api/Transform.h> -#include <crepe/system/PhysicsSystem.h> - -using namespace crepe; -using namespace std; - -int main(int argc, char * argv[]) { - ComponentManager mgr{}; - - GameObject game_object = mgr.new_object("Name", "Tag", Vector2{0, 0}, 0, 0); - game_object.add_component<Rigidbody>(Rigidbody::Data{ - .mass = 1, - .gravity_scale = 1, - .body_type = Rigidbody::BodyType::DYNAMIC, - .constraints = {0, 0, 0}, - .use_gravity = true, - .bounce = false, - }); - return 0; -} |