diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-20 16:46:00 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-20 16:46:00 +0100 |
commit | fdf91122ddc1fa9942c8790d2c8c845f877df11d (patch) | |
tree | 4dfbdb345f48bb01838057bcf1b88795b873f224 /src/example/physics.cpp | |
parent | d9a51069366650051e644453f5d3ac90f2ab29b5 (diff) |
convert more examples to unit tests
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; -} |