YAGE
Yet Another Game Engine
include
YAGE
Physics
rigidbody.hpp
1
/* ----------------------------------------------------------------------------
2
* rigidbody.hpp
3
*
4
* Copyright (c) 2017 Yann Herklotz Grave <ymherklotz@gmail.com> -- MIT License
5
* See file LICENSE for more details
6
* ----------------------------------------------------------------------------
7
*/
8
9
#ifndef YAGE_RIGID_BODY_HPP
10
#define YAGE_RIGID_BODY_HPP
11
12
#include <glm/glm.hpp>
13
14
#include "particlebody.hpp"
15
16
namespace
yage
17
{
18
19
class
RigidBody
:
public
ParticleBody
20
{
21
public
:
22
RigidBody
(
const
Vector2d
&position=
Vector2d
(0, 0),
23
double
mass=1,
24
const
Vector2d
&velocity=
Vector2d
(0, 0),
25
bool
gravity=
true
);
26
};
27
28
}
// yage
29
30
#endif
yage::Vector2< double >
yage::ParticleBody
Definition:
particlebody.hpp:19
yage::RigidBody
Definition:
rigidbody.hpp:19
yage
Definition:
camera2d.hpp:17
Generated by
1.8.13