Ewol Game engine (based on bullet lib) 0.3.0
Main Page
Related Pages
Namespaces
Classes
Files
Link-libs
lutin
ewol
echrono
etk
ejson
exml
esvg
egami
gale
ege
elog
ememory
enet
eproperty
esignal
etranslate
zeus
audio-ess
audio
audio-drain
audio-orchestra
audio-river
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
framework
atria-soft
ege
ege
physicsShape
PhysicsBox.hpp
Go to the documentation of this file.
1
6
#pragma once
7
8
9
#include <
etk/types.hpp
>
10
#include <
ege/physicsShape/PhysicsShape.hpp
>
11
12
namespace
ege
{
13
class
PhysicsBox
:
public
ege::PhysicsShape
{
14
public
:
15
PhysicsBox
() {};
16
virtual
~
PhysicsBox
() {};
17
public
:
18
virtual
bool
parse(
const
char
* _line);
19
virtual
void
display() {};
20
public
:
21
virtual
enum
ege::PhysicsShape::type getType()
const
{
22
return
ege::PhysicsShape::box;
23
};
24
private
:
25
vec3
m_size;
// Box size property in X, Y and Z
26
public
:
27
const
vec3
& getSize()
const
{
28
return
m_size;
29
};
30
void
setSize(
const
vec3
& _size) {
31
m_size = _size;
32
}
33
public
:
34
virtual
const
ege::PhysicsBox
* toBox()
const
{
35
return
this
;
36
};
37
virtual
ege::PhysicsBox
* toBox() {
38
return
this
;
39
};
40
};
41
}
42
types.hpp
ege
Definition:
AudioElement.hpp:8
PhysicsShape.hpp
etk::Vector3D< float >
ege::PhysicsBox
Definition:
PhysicsBox.hpp:13
ege::PhysicsShape
Definition:
PhysicsShape.hpp:22
Generated on Mon Oct 24 2016 15:35:54 for Ewol Game engine (based on bullet lib) by
1.8.12