-
Notifications
You must be signed in to change notification settings - Fork 8
/
PhysicsUtils.h
32 lines (26 loc) · 1.14 KB
/
PhysicsUtils.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// +------------------------------------------------------------+
// | University Racer |
// | Projekt do PGR a GMU, FIT VUT v Brne, 2011 |
// +------------------------------------------------------------+
// | Autori: Tomáš Kimer, [email protected] |
// | Tomáš Sychra, [email protected] |
// | David Šabata, [email protected] |
// +------------------------------------------------------------+
#ifndef PHYSICSUTILS_H
#define PHYSICSUTILS_H
#include <btBulletDynamicsCommon.h>
#include <glm/gtc/type_ptr.hpp>
/**
* Pomocne funkce pro praci s fyzikou, zejmena konverzni.
*/
class PhysicsUtils
{
public:
PhysicsUtils(void);
~PhysicsUtils(void);
static btRigidBody * PhysicsUtils::CreateRigidBody(btScalar mass, const btTransform & startTransform, btCollisionShape * shape);
static btTransform btTransFrom(const btVector3 & origin, const btQuaternion & rot = btQuaternion(0,0,0));
static btTransform btTransFrom(const glm::mat4 & m);
static glm::mat4 glmMat4From(const btTransform & trans);
};
#endif