OROCHI
 
Loading...
Searching...
No Matches
GxUnitCameraFreeView.h
Go to the documentation of this file.
1//===========================================================================
12//===========================================================================
13#ifndef __GXUNITCAMERAFREEVIEW_H__
14#define __GXUNITCAMERAFREEVIEW_H__
15
16GX_UTILITY_NAMESPACE_BEGIN()
17
18//===========================================================================
20//===========================================================================
22{
23 //-------------------------------------------------------------
25 //-------------------------------------------------------------
27public:
28 // RTTI宣言
29 GX_RTTI_CLASS_NAME(GxUnitCameraFreeView, GxUnitCamera, "撮影フリーカメラ")
30
31
32 enum class MODE
33 {
34 FREE,
35 };
36
38 //-----------------------------------------------------------
40 //-----------------------------------------------------------
42
45
47 //-----------------------------------------------------------
49 //-----------------------------------------------------------
51protected:
53 b32 setup(void) override;
54
56 void sequentialUpdate(void) override;
57
58public:
60 void update(u32 padNo);
62 void update(const GxVector2& stickVector);
63
65 void updateFree(void);
66
68 //-----------------------------------------------------------
70 //-----------------------------------------------------------
72public:
74 void setMode(u32 mode);
76 constexpr u32 getMode(void) const { return static_cast<u32>(_mode);}
77
79 constexpr void setPadNo(u32 padNo ) { _controlPadNo = padNo; }
81 constexpr u32 getPadNo(void) const { return _controlPadNo; }
82
84 f32 AddRotateX(f32 addX);
86 f32 AddRotateY(f32 addY);
87
89 //-----------------------------------------------------------
91 //-----------------------------------------------------------
93private:
94 MODE _mode;
95 u32 _controlPadNo;
96 GxVector3 _targetOffset[2];
97 f32 _moveSpeed;
98 f32 _moveYSpeed;
99 GxVector3 _targetRotate;
100 GxVector3 _rotate;
101 GxVector3 _rotateAuto;
102 b32 _rotateAutoUpdate;
103 GxVector2 _rotateSpeed;
104 b32 _rotateInvertX;
105 b32 _rotateInvertY;
106 GxMatrix44 _matrix;
107 GxUnitLocate* _pTarget[2];
108 f32 _distance;
109
110 b32 _reset;
111
112 b32 _interpolateRotate;
113
114 GxVector3 _target;
115 GxVector3 _position;
116 GxVector3 _vector;
117
118 b32 _resetRotate;
119
120 GxVector3 _targetInterpolationCoefficient;
121};
122
123GX_UTILITY_NAMESPACE_END()
124
125#endif // __GXUNITCAMERAFREEVIEW_H__
撮影用カメラ
Definition GxUnitCameraFreeView.h:22
MODE
モード
Definition GxUnitCameraFreeView.h:33
constexpr u32 getMode(void) const
モード取得
Definition GxUnitCameraFreeView.h:76
constexpr u32 getPadNo(void) const
パッド番号を取得
Definition GxUnitCameraFreeView.h:81
constexpr void setPadNo(u32 padNo)
パッド番号を設定
Definition GxUnitCameraFreeView.h:79
エフェクトアタッチ機能付きカメラユニット
Definition GxUnitCamera.h:18
座標ユニット基礎クラス
Definition GxUnitLocate.h:23
4×4行列(行優先)
Definition GxMatrix.h:607
2次元ベクトル
Definition GxVector.h:34
3次元ベクトル
Definition GxVector.h:245
32bitブーリアン
Definition GxDefine.h:173