ランタイム
ICompoundShape.h
Go to the documentation of this file.
1 #pragma once
2 
5 
6 #include "Mix/Dynamics/IShape.h"
7 
8 namespace Mix{ namespace Dynamics{
9 
23  {
24  protected:
26  virtual ~ICompoundShape( void ){}
27 
28  public:
35  virtual Boolean AddChild( Mix::Dynamics::IShape* pShape, const Mix::Quaternion& rot, const Mix::Vector3& pos ) = 0;
39  virtual UInt32 RemoveChild( Mix::Dynamics::IShape* pShape ) = 0;
43  virtual Boolean RemoveChildByIndex( UInt32 index ) = 0;
44 
50  virtual Boolean GetChildByIndex( UInt32 index, Mix::Dynamics::IShape** ppShape ) = 0;
55  virtual Mix::Dynamics::IShape* GetChildPtrByIndex( UInt32 index ) const = 0;
56 
62  virtual Boolean GetChildTransformByIndex( UInt32 index, Mix::Quaternion& rot, Mix::Vector3& pos ) = 0;
68  virtual Boolean SetChildTransformByIndex( UInt32 index, const Mix::Quaternion& rot, const Mix::Vector3& pos ) = 0;
69 
72  virtual UInt32 GetChildCount( void ) const = 0;
73  };
74 
75 }}
3次元浮動小数点ベクトルクラス
Definition: Vector3.h:12
virtual Boolean GetChildByIndex(UInt32 index, Mix::Dynamics::IShape **ppShape)=0
子を取得します
virtual Boolean RemoveChildByIndex(UInt32 index)=0
子を削除します
virtual Boolean AddChild(Mix::Dynamics::IShape *pShape, const Mix::Quaternion &rot, const Mix::Vector3 &pos)=0
子を追加します
シェイプインターフェースインクルードファイル
クォータニオンクラス
Definition: Quaternion.h:10
virtual UInt32 RemoveChild(Mix::Dynamics::IShape *pShape)=0
子を削除します
virtual UInt32 GetChildCount(void) const =0
子の数を取得します
virtual Boolean GetChildTransformByIndex(UInt32 index, Mix::Quaternion &rot, Mix::Vector3 &pos)=0
子の位置、回転姿勢を取得します
unsigned int UInt32
符号無し32ビット整数
Definition: Common.h:68
ミックス
Definition: AtomicValue.h:6
virtual ~ICompoundShape(void)
デストラクタ
Definition: ICompoundShape.h:26
コンパウンドシェイプインターフェース
Definition: ICompoundShape.h:22
virtual Boolean SetChildTransformByIndex(UInt32 index, const Mix::Quaternion &rot, const Mix::Vector3 &pos)=0
子の位置と回転姿勢を更新します
BOOL Boolean
32ビットブーリアン
Definition: Common.h:102
シェイプインターフェース
Definition: IShape.h:16
virtual Mix::Dynamics::IShape * GetChildPtrByIndex(UInt32 index) const =0
子のポインタを取得します