|
UniDx
|
GameObjectの位置、回転、スケールを扱い、階層構造を実現するクラス GameObjectに必ず1つアタッチされている [詳解]
#include <Transform.h>
公開型 | |
| typedef std::vector< unique_ptr< GameObject > > | GameObjectContainer |
公開メンバ関数 | |
| const GameObjectContainer & | getChildGameObjects () const |
| GameObject * | SetParent (Transform *newParent) |
| 親の変更(すでに親を設定している場合) | |
| size_t | childCount () const |
| 子の数を取得 | |
| Transform * | GetChild (size_t index) const |
| 子を取得 | |
| const Matrix4x4 & | localMatrix () const |
| ローカル座標系から親座標系への変換行列 | |
| const Matrix4x4 & | localToWorldMatrix () const |
| ワールド座標系への変換行列 | |
| Transform () | |
| virtual | ~Transform () |
| Vector3 | TransformDirection (Vector3 localDirection) const |
| ローカル空間の方向ベクトルをワールド空間の方向ベクトルに変換 | |
| Vector3 | TransformVector (Vector3 localVector) const |
| ローカル空間のベクトルをワールド空間のベクトルに変換(スケール・回転のみ、平行移動なし) | |
| Vector3 | TransformPoint (Vector3 localPoint) const |
| ローカル空間の座標をワールド空間の座標に変換 | |
| 基底クラス UniDx::Component に属する継承公開メンバ関数 | |
| void | checkAwake () |
| void | checkStart () |
| bool | isDestroyed () const |
| virtual | ~Component () |
| 基底クラス UniDx::Object に属する継承公開メンバ関数 | |
| virtual | ~Object () |
| Object (ReadOnlyProperty< StringId >::Getter nameGet) | |
静的公開メンバ関数 | |
| static void | SetParent (unique_ptr< GameObject > gameObjectPtr, Transform *newParent) |
| 親のいないTransformを持つGameObjectに親を設定 | |
公開変数類 | |
| Property< Vector3 > | localPosition |
| Property< Quaternion > | localRotation |
| Property< Vector3 > | localScale |
| Property< Vector3 > | position |
| Property< Quaternion > | rotation |
| Property< Vector3 > | forward |
| Property< Vector3 > | up |
| Property< Vector3 > | right |
| Transform * | parent = nullptr |
| 基底クラス UniDx::Component に属する継承公開変数類 | |
| Property< bool > | enabled |
| ReadOnlyProperty< Transform * > | transform |
| GameObject * | gameObject = nullptr |
| 基底クラス UniDx::Object に属する継承公開変数類 | |
| ReadOnlyProperty< StringId > | name |
その他の継承メンバ | |
| 基底クラス UniDx::Component に属する継承限定公開メンバ関数 | |
| virtual void | Awake () |
| virtual void | Start () |
| virtual void | OnEnable () |
| virtual void | OnDisable () |
| virtual void | OnDestroy () |
| Component () | |
| void | doDestroy () |
| 基底クラス UniDx::Component に属する継承限定公開変数類 | |
| bool | isCalledAwake |
| bool | isCalledStart |
| bool | isCalledDestroy |
| bool | _enabled |
GameObjectの位置、回転、スケールを扱い、階層構造を実現するクラス GameObjectに必ず1つアタッチされている
| typedef std::vector<unique_ptr<GameObject> > UniDx::Transform::GameObjectContainer |
| UniDx::Transform::Transform | ( | ) |
|
virtual |
|
inline |
子の数を取得
| Transform * UniDx::Transform::GetChild | ( | size_t | index | ) | const |
子を取得
|
inline |
| const Matrix4x4 & UniDx::Transform::localMatrix | ( | ) | const |
ローカル座標系から親座標系への変換行列
|
inline |
ワールド座標系への変換行列
| GameObject * UniDx::Transform::SetParent | ( | Transform * | newParent | ) |
親の変更(すでに親を設定している場合)
|
static |
親のいないTransformを持つGameObjectに親を設定
ローカル空間の方向ベクトルをワールド空間の方向ベクトルに変換
ローカル空間のベクトルをワールド空間のベクトルに変換(スケール・回転のみ、平行移動なし)
| Property<Quaternion> UniDx::Transform::localRotation |
| Transform* UniDx::Transform::parent = nullptr |
| Property<Quaternion> UniDx::Transform::rotation |