OpenGothic
Open source reimplementation of Gothic I and II
Loading...
Searching...
No Matches
physicmeshshape.h
Go to the documentation of this file.
1#pragma once
2
3#include "physics/physics.h"
4#include "physicvbo.h"
5
6class PhysicMeshShape final {
7 public:
9
10 float friction() const;
11
12 static PhysicMeshShape* load(PackedMesh&& packed);
13
14 private:
16
17 PhysicVbo mesh;
18 mutable btBvhTriangleMeshShape shape;
19 float frict = 0;
20
21 friend class DynamicWorld;
22 };
PhysicMeshShape(const PhysicMeshShape &)=delete
float friction() const
static PhysicMeshShape * load(PackedMesh &&packed)