Yet Another Game Engine
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
yage
physics
rigidbody.h
Go to the documentation of this file.
1
10
#pragma once
11
12
#include "
particlebody.h
"
13
14
#include <glm/glm.hpp>
15
16
namespace
yage
17
{
18
19
class
RigidBody
:
public
ParticleBody
20
{
21
public
:
22
RigidBody
(
const
Vector2d
&position =
Vector2d
(0, 0),
double
mass = 1,
23
const
Vector2d
&velocity =
Vector2d
(0, 0),
bool
gravity =
true
);
24
};
25
26
}
// namespace yage
yage::Vector2< double >
yage::ParticleBody
Definition:
particlebody.h:18
yage::RigidBody::RigidBody
RigidBody(const Vector2d &position=Vector2d(0, 0), double mass=1, const Vector2d &velocity=Vector2d(0, 0), bool gravity=true)
Definition:
rigidbody.cpp:15
yage::RigidBody
Definition:
rigidbody.h:19
yage::Vector2d
Vector2< double > Vector2d
Definition of a 2D vector.
Definition:
matrix.h:394
particlebody.h
-*- c++ -*-
Generated on Sat Jun 23 2018 15:09:53 by
1.8.6