protected override void OnInstantiate() { BodyReference body = Body(); System.Numerics.Vector3 velocity = PhysicUtils.Forward(body.Pose.Orientation.ToQuaternion()).ToBEPU() * linearVelocity; body.Velocity.Linear = velocity; engineSound = TGCGame.content.S_TIEEngine.CreateInstance(); engineSound.IsLooped = true; engineSound.Volume = 0.001f; emitter.Velocity = velocity.ToVector3(); TGCGame.soundManager.PlaySound(engineSound, emitter); }