CreateChildSceneNode() публичный Метод

public CreateChildSceneNode ( Vector3 translate, Quaternion rotate ) : SceneNode
translate Vector3
rotate Axiom.Math.Quaternion
Результат Axiom.Core.SceneNode
Пример #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);
        }
Пример #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 );
		}