UniDx
読み取り中…
検索中…
一致する文字列を見つけられません
UniDx::Transform クラス

GameObjectの位置、回転、スケールを扱い、階層構造を実現するクラス GameObjectに必ず1つアタッチされている [詳解]

#include <Transform.h>

UniDx::Transform の継承関係図
UniDx::Component UniDx::Object

公開型

typedef std::vector< unique_ptr< GameObject > > GameObjectContainer

公開メンバ関数

const GameObjectContainergetChildGameObjects () const
GameObjectSetParent (Transform *newParent)
 親の変更(すでに親を設定している場合)
size_t childCount () const
 子の数を取得
TransformGetChild (size_t index) const
 子を取得
const Matrix4x4localMatrix () const
 ローカル座標系から親座標系への変換行列
const Matrix4x4localToWorldMatrix () 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< Vector3localPosition
Property< QuaternionlocalRotation
Property< Vector3localScale
Property< Vector3position
Property< Quaternionrotation
Property< Vector3forward
Property< Vector3up
Property< Vector3right
Transformparent = nullptr
基底クラス UniDx::Component に属する継承公開変数類
Property< bool > enabled
ReadOnlyProperty< Transform * > transform
GameObjectgameObject = nullptr
基底クラス UniDx::Object に属する継承公開変数類
ReadOnlyProperty< StringIdname

その他の継承メンバ

基底クラス 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つアタッチされている

型定義メンバ詳解

◆ GameObjectContainer

typedef std::vector<unique_ptr<GameObject> > UniDx::Transform::GameObjectContainer

構築子と解体子

◆ Transform()

UniDx::Transform::Transform ( )

◆ ~Transform()

UniDx::Transform::~Transform ( )
virtual

関数詳解

◆ childCount()

size_t UniDx::Transform::childCount ( ) const
inline

子の数を取得

◆ GetChild()

Transform * UniDx::Transform::GetChild ( size_t index) const

子を取得

◆ getChildGameObjects()

const GameObjectContainer & UniDx::Transform::getChildGameObjects ( ) const
inline

◆ localMatrix()

const Matrix4x4 & UniDx::Transform::localMatrix ( ) const

ローカル座標系から親座標系への変換行列

◆ localToWorldMatrix()

const Matrix4x4 & UniDx::Transform::localToWorldMatrix ( ) const
inline

ワールド座標系への変換行列

◆ SetParent() [1/2]

GameObject * UniDx::Transform::SetParent ( Transform * newParent)

親の変更(すでに親を設定している場合)

◆ SetParent() [2/2]

void UniDx::Transform::SetParent ( unique_ptr< GameObject > gameObjectPtr,
Transform * newParent )
static

親のいないTransformを持つGameObjectに親を設定

◆ TransformDirection()

Vector3 UniDx::Transform::TransformDirection ( Vector3 localDirection) const

ローカル空間の方向ベクトルをワールド空間の方向ベクトルに変換

◆ TransformPoint()

Vector3 UniDx::Transform::TransformPoint ( Vector3 localPoint) const
inline

ローカル空間の座標をワールド空間の座標に変換

◆ TransformVector()

Vector3 UniDx::Transform::TransformVector ( Vector3 localVector) const
inline

ローカル空間のベクトルをワールド空間のベクトルに変換(スケール・回転のみ、平行移動なし)

メンバ詳解

◆ forward

Property<Vector3> UniDx::Transform::forward

◆ localPosition

Property<Vector3> UniDx::Transform::localPosition

◆ localRotation

Property<Quaternion> UniDx::Transform::localRotation

◆ localScale

Property<Vector3> UniDx::Transform::localScale

◆ parent

Transform* UniDx::Transform::parent = nullptr

◆ position

Property<Vector3> UniDx::Transform::position

◆ right

Property<Vector3> UniDx::Transform::right

◆ rotation

Property<Quaternion> UniDx::Transform::rotation

◆ up

Property<Vector3> UniDx::Transform::up

このクラス詳解は次のファイルから抽出されました: