示例#1
0
 public override void Update()
 {
     mesh.SetPosition(Position.X, Position.Y, Position.Z);
     particle.SetGlobalPosition(Position.X, Position.Y, Position.Z);
     particle.SetGlobalRotation(Rotation.X, Rotation.Y, Rotation.Z);
     particle.SetGlobalScale(Scale.X, Scale.Y, Scale.Z);
     particle.Enable(Visible);
 }
示例#2
0
文件: Particle.cs 项目: zulis/Cubica
        public override void Initialize()
        {
            particle = Scene.CreateParticleSystem();
            particle.Load(FileName);
            particle.SetGlobalPosition(Position.x, Position.y, Position.z);
            particle.SetGlobalScale(Scale.x, Scale.y, Scale.z);
            particle.Enable(Visible);

            // Register object in Lua.
            ScriptManager.SetGlobal(Name, this);
        }
示例#3
0
        public override void Initialize()
        {
            particle = Scene.CreateParticleSystem();
            particle.Load(FileName);
            particle.SetGlobalPosition(Position.x, Position.y, Position.z);
            particle.SetGlobalScale(Scale.x, Scale.y, Scale.z);
            particle.Enable(Visible);

            // Register object in Lua.
            ScriptManager.SetGlobal(Name, this);
        }