public CreateChild ( string name, Vector3 translate, Axiom.MathLib.Quaternion rotate ) : |
||
name | string | Name of the node. |
translate | Vector3 | A vector to specify the position relative to the parent. |
rotate | Axiom.MathLib.Quaternion | A quaternion to specify the orientation relative to the parent. |
return |
public virtual Node CreateChild( string name, Vector3 translate, Quaternion rotate )
{
Node newChild = CreateChildImpl( name );
newChild.Translate( translate );
newChild.Rotate( rotate );
AddChild( newChild );
return newChild;
}
Node::CreateChild ( ) : |
|
Node::CreateChild ( Vector3 translate ) : |
|
Node::CreateChild ( Vector3 translate, Axiom.MathLib.Quaternion rotate ) : |
|
Node::CreateChild ( string name ) : |
|
Node::CreateChild ( string name, Vector3 translate ) : |
public virtual void NotifyAttached(Node parent) { this.parentNode = parent; if ( parent != null ) { tileSceneNode = (SceneNode)( parent.CreateChild( name ) ); //mTileNode.setPosition( (Real)mTableX , 0.0, (Real)mTableZ ); if ( renderable != null) if (renderable.IsLoaded) { tileSceneNode.AttachObject( (MovableObject) renderable ); } tileSceneNode.NeedUpdate(); } }