Rune Engine  Version 0.2.7-alpha
Documentation for how to make games using the Rune Engine.
collision.h
1 #pragma once
2 
3 #include "rigidBody.h"
4 
5 namespace physics{
6 
7 class collision
8 {
9 
10  RigidBody* objectOne;
11  RigidBody* objectTwo;
12  rune::Vec2 normalVector;
13  double depth;
14 
15  collision() : objectOne(nullptr), objectTwo(nullptr), normalVector(rune::Vec2(0, 0)), depth(0)
16  {
17 
18  }
19 
20 };
21 
22 }//namespace physics
physics
The physics module responsible for handling and resolving collisions between physics::Collider2D.
Definition: AABB.h:7
physics::RigidBody
Game object component that allows a game object to have collisions with other objects.
Definition: rigidBody.h:95
physics::collision
Collision manifold used for reporting rigid body collisions.
Definition: collision.h:8
rune::Vec2
1 x 2 vector to be used for math.
Definition: vec2.h:20