OpenGothic
Open source reimplementation of Gothic I and II
Loading...
Searching...
No Matches
physicmesh.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
dynamicworld.h
"
4
5
class
Pose
;
6
class
ProtoMesh
;
7
class
Skeleton
;
8
class
AttachBinder
;
9
10
class
PhysicMesh
final {
11
public
:
12
PhysicMesh
()=
default
;
13
PhysicMesh
(
const
ProtoMesh
& proto,
DynamicWorld
& owner,
bool
movable);
14
15
bool
isEmpty
()
const
;
16
17
void
setObjMatrix
(
const
Tempest::Matrix4x4& m);
18
void
setSkeleton
(
const
Skeleton
* sk);
19
void
setPose
(
const
Pose
& p);
20
void
setInteractive
(
Interactive
* it);
21
22
private
:
23
void
implSetObjMatrix(
const
Tempest::Matrix4x4& mt,
const
Tempest::Matrix4x4* tr);
24
25
std::vector<DynamicWorld::Item> sub;
26
const
ProtoMesh
* ani=
nullptr
;
27
const
Skeleton
* skeleton=
nullptr
;
28
const
AttachBinder
* binder=
nullptr
;
29
};
AttachBinder
Definition
attachbinder.h:10
DynamicWorld
Definition
dynamicworld.h:28
Interactive
Definition
interactive.h:18
PhysicMesh
Definition
physicmesh.h:10
PhysicMesh::setInteractive
void setInteractive(Interactive *it)
Definition
physicmesh.cpp:55
PhysicMesh::PhysicMesh
PhysicMesh()=default
PhysicMesh::setPose
void setPose(const Pose &p)
Definition
physicmesh.cpp:36
PhysicMesh::setObjMatrix
void setObjMatrix(const Tempest::Matrix4x4 &m)
Definition
physicmesh.cpp:26
PhysicMesh::setSkeleton
void setSkeleton(const Skeleton *sk)
Definition
physicmesh.cpp:30
PhysicMesh::isEmpty
bool isEmpty() const
Definition
physicmesh.cpp:22
Pose
Definition
pose.h:16
ProtoMesh
Definition
protomesh.h:21
Skeleton
Definition
skeleton.h:11
dynamicworld.h
game
physics
physicmesh.h
Generated by
1.9.8