Tramway SDK
collisionmodel.h
Go to the documentation of this file.
1// TRAMWAY DRIFT AND DUNGEON EXPLORATION SIMULATOR 2022
2// All rights reserved.
3
4#ifndef TRAM_SDK_PHYSICS_COLLISIONMODEL_H
5#define TRAM_SDK_PHYSICS_COLLISIONMODEL_H
6
8#include <physics/physics.h>
9
10namespace tram::Physics {
11
12class CollisionModel : public Resource {
13public:
14 CollisionModel(name_t mName) : Resource(mName) {}
15
16 void LoadFromDisk();
18 void Unload() {}
19
20 inline collisionshape_t GetShape() { return shape; }
21
22 static CollisionModel* Find(name_t model_name);
23protected:
25};
26
27}
28
29#endif // TRAM_SDK_PHYSICS_COLLISIONMODEL_H
Definition: collisionmodel.h:12
collisionshape_t shape
Definition: collisionmodel.h:24
void LoadFromMemory()
Definition: collisionmodel.h:17
void Unload()
Definition: collisionmodel.h:18
collisionshape_t GetShape()
Definition: collisionmodel.h:20
void LoadFromDisk()
Loads the collision model from disk.
Definition: collisionmodel.cpp:35
CollisionModel(name_t mName)
Definition: collisionmodel.h:14
static CollisionModel * Find(name_t model_name)
Finds a model.
Definition: collisionmodel.cpp:21
Definition: resource.h:12
Definition: api.h:10
Definition: physics.h:44
Definition: uid.h:11