RigidBody.h 481 B

1234567891011121314151617181920212223
  1. /*
  2. * 2D Game Engine
  3. * RigidBody.h:
  4. * Based on pikuma.com 2D game engine in C++ and Lua course
  5. * Copyright (c) 2021 986-Studio. All rights reserved.
  6. *
  7. * Created by Manoël Trapier on 12/02/2021.
  8. */
  9. #ifndef GAMEENGINE_RIGIDBODY_H
  10. #define GAMEENGINE_RIGIDBODY_H
  11. #include <glm/glm.hpp>
  12. struct RigidBodyComponent
  13. {
  14. glm::vec2 velocity;
  15. explicit RigidBodyComponent(glm::vec2 velocity = glm::vec2(0, 0)):velocity(velocity) {};
  16. };
  17. #endif /* GAMEENGINE_RIGIDBODY_H */