public Sound(ICore core, string fileName) : base(core) { FileName = fileName; Name = core.GetName<Sound>(); TV_3DVECTOR position = Core.Camera.GetFrontPosition(10.0f); Position = new VECTOR3D(position.x, position.y, position.z); Is3D = false; mySound = core.SoundFactory.Load(fileName, Is3D); core.SoundFactory.StopAllSounds(); mesh = core.Scene.CreateBillboard(Helpers.GetTextureFromResource(core, Resources.sound), position.x, position.y, position.z, 1.0f, 1.0f); mesh.SetAlphaTest(true); Stopped = true; Loop = false; volume = 100; UniqueId = mesh.GetMeshName(); }