Rune Engine  Version 0.2.7-alpha
Documentation for how to make games using the Rune Engine.
boxCollider.h
1 #pragma once
2 
3 #include <core.h>
4 #include "collider.h"
5 #include <Entities/component.h>
6 #include <Entities/gameObject.h>
7 
8 namespace physics{
9 
10  class RUNE_ENGINE BoxCollider : public Collider, rune::Component
11  {
12  private:
13  double rotation;
14  rune::Vec2 boxSize;
15 
16  public:
17  BoxCollider();
18 
19  AABB computeAABB() override;
20 
21  };
22 
23 }
physics::Collider
A collider that is to be used for registering collisions between objects in the scene.
Definition: collider.h:24
physics
The physics module responsible for handling and resolving collisions between physics::Collider2D.
Definition: AABB.h:7
physics::BoxCollider
Definition: boxCollider.h:11
rune::Component
A component of a rune::GameObject, this class is used to add functionality to a object in the game wo...
Definition: component.h:23
rune::Vec2
1 x 2 vector to be used for math.
Definition: vec2.h:20
physics::AABB
Axis aligned bounding box for each object.
Definition: AABB.h:10