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); }
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); }