# FMOD compiler errors when disabling the Physics packages

**URL:** <https://qa.fmod.com/t/fmod-compiler-errors-when-disabling-the-physics-packages/16820>\
**Category:** Unity\
**Tags:** unity, csharp\
**Created:** [February 27, 2021, 12:03am UTC](https://qa.fmod.com/t/fmod-compiler-errors-when-disabling-the-physics-packages/16820 "2021-02-27T00:03:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mudloop](https://avatars.discourse-cdn.com/v4/letter/m/ac8455/32.png) [@Mudloop](https://qa.fmod.com/u/Mudloop)\
**Post date:** [February 27, 2021, 12:03am UTC](https://qa.fmod.com/t/fmod-compiler-errors-when-disabling-the-physics-packages/16820/1 "2021-02-27T00:03:15Z")

</div>

Hi,

In my project, I want to disable physics packages (both 2D and 3D) via the package manager. This breaks FMOD, as it has reference to RigidBody and RigidBody2D.

I don’t want these packages because I don’t use them and they slow down build times, and they inflate my game. Unity has the ability to disable packages for a reason, and it would be nice if FMOD could still be used by users who don’t want these packages.

I believe it’s possible to detect whether physics are enabled with version defines in the Assembly Definition.

Of course I could modify the codebase myself, but that would mean I can no longer update FMOD easily.

---

<div class="post-metadata">

**Author:** ![mathew](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/mathew/32/431_2.png) [@mathew](https://qa.fmod.com/u/mathew)\
**Post date:** [March 1, 2021, 10:13pm UTC](https://qa.fmod.com/t/fmod-compiler-errors-when-disabling-the-physics-packages/16820/2 "2021-03-01T22:13:05Z")

</div>

We do have quite a few references into the Physics packages, I’ll add a task to our tracker to see about making its use conditional via our asmdef.

---

<div class="post-metadata">

**Author:** ![Mudloop](https://avatars.discourse-cdn.com/v4/letter/m/ac8455/32.png) [@Mudloop](https://qa.fmod.com/u/Mudloop)\
**Post date:** [March 1, 2021, 11:14pm UTC](https://qa.fmod.com/t/fmod-compiler-errors-when-disabling-the-physics-packages/16820/3 "2021-03-01T23:14:16Z")

</div>

Thanks!
