CreateChildSceneNode() public method

public CreateChildSceneNode ( Vector3 translate, Quaternion rotate ) : SceneNode
translate Vector3
rotate Axiom.Math.Quaternion
return Axiom.Core.SceneNode
Esempio n. 1
0
        //-------------------------------------------------------------------------
        public override void SetZoneGeometry(string filename, PCZSceneNode parentNode)
        {
            String entityName, nodeName;

            entityName = Name + "_entity";
            nodeName   = Name + "_Node";
            Entity ent = mPCZSM.CreateEntity(entityName, filename);
            // create a node for the entity
            PCZSceneNode node;

            node = (PCZSceneNode)(parentNode.CreateChildSceneNode(nodeName, Vector3.Zero, Quaternion.Identity));
            // attach the entity to the node
            node.AttachObject(ent);
            // set the node as the enclosure node
            SetEnclosureNode(node);
        }
Esempio n. 2
0
		//-------------------------------------------------------------------------
		public override void SetZoneGeometry( string filename, PCZSceneNode parentNode )
		{
			String entityName, nodeName;
			entityName = this.Name + "_entity";
			nodeName = this.Name + "_Node";
			Entity ent = mPCZSM.CreateEntity( entityName, filename );
			// create a node for the entity
			PCZSceneNode node;
			node = (PCZSceneNode)( parentNode.CreateChildSceneNode( nodeName, Vector3.Zero, Quaternion.Identity ) );
			// attach the entity to the node
			node.AttachObject( ent );
			// set the node as the enclosure node
			SetEnclosureNode( node );
		}