forked from abertay-cmp404/virtual_vita
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGameObjectMy.h
More file actions
36 lines (25 loc) · 722 Bytes
/
GameObjectMy.h
File metadata and controls
36 lines (25 loc) · 722 Bytes
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
33
34
35
#pragma once
#include <graphics/mesh_instance.h>
class GameObjectMy : public gef::MeshInstance
{
public:
GameObjectMy();
~GameObjectMy();
void Init();
bool Update(float frame_time);
gef::Matrix44 BuildRotationX(float RadAngle_);
gef::Matrix44 BuildRotationY(float RadAngle_);
gef::Matrix44 BuildRotationZ(float RadAngle_);
gef::Matrix44 BuildScale(gef::Vector4 scale);
gef::Matrix44 BuildTranslate(gef::Vector4 Position);
void BuildTransformationMatrix();
//virtual void CreateTransMatrix();
//virtual void Update2_(float frame_time);
gef::Vector4 velocity_;
gef::Vector4 position_;
float rotationX_;
float rotationY_;
float rotationZ_;
gef::Vector4 scale_;
gef::Matrix44 localTransform_;
};