blob: 48380dacec26d2b0821a7d5cc2ee4050697e3ca3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#ifndef YAGE_RIGID_BODY_HPP
#define YAGE_RIGID_BODY_HPP
#include <glm/glm.hpp>
#include "particlebody.hpp"
namespace yage
{
class RigidBody : public ParticleBody
{
public:
RigidBody(const glm::vec2 &position=glm::vec2(0.f, 0.f),
double mass=1.0,
const glm::vec2 &velocity=glm::vec2(0.f, 0.f),
bool gravity=true);
};
} // yage
#endif
|