com.unity.netcode.gameobjects icon indicating copy to clipboard operation
com.unity.netcode.gameobjects copied to clipboard

Physics 2D dependency in version 2.0.0

Open Agoxandr opened this issue 4 years ago • 4 comments

Physics 2D module dependency is missing in package.json. I understand that this is nitpicky and I would make a pull request myself, but it would take me more than 20 mins.

Thank you.

Agoxandr avatar Nov 26 '21 16:11 Agoxandr

Is this causing any issues in your project? Did you try to import Netcode for GameObjects and run into exceptions? The Physics 2D module should be part of every Unity project already by default.

LukeStampfli avatar Nov 29 '21 15:11 LukeStampfli

As I said it's really nitpicky. It threw errors in NetworkRigidbody2D when I imported because the project didn't have the module. The package.json includes all the other modules you need except for this one.

Agoxandr avatar Nov 29 '21 16:11 Agoxandr

Fixed in new release.

Agoxandr avatar Jul 02 '22 16:07 Agoxandr

This is an issue again with with the release of 2.0.0 in the file NetworkRigidBodyBase.cs.

Agoxandr avatar Oct 04 '24 16:10 Agoxandr

The components (NetworkRigidbody or NetworkRigidbody2D) will not be defined if the 3D/2D physics packages are not installed. NetworkRigidbodyBase will not be defined if neither package is installed too. This is intended behaviour. To gain access to NetworkRigidbodyBase you must install one of the two physics packages.

NoelStephensUnity avatar Jan 07 '25 22:01 NoelStephensUnity