Cinemachine Samples out of date

The Unity Cinemachine 3D samples have issues with Unity physics.

Unity ver. 6000.0.40f1
Cinemachine 3.1.3
Unity Physics 1.3.10

Repro Steps:
1 Install Unity.
2 Create a URP project.
3 Install both packages.
4 Install Cinemachine 3D samples.

Assets\Samples\Cinemachine\3.1.3\Shared Assets\Scripts\SimplePlayerOnSurface.cs(86,17): error CS0234: The type or namespace name 'Raycast' does not exist in the namespace 'Unity.Physics' (are you missing an assembly reference?)

Assets\Samples\Cinemachine\3.1.3\Shared Assets\Scripts\SimplePlayerOnSurface.cs(95,29): error CS0234: The type or namespace name 'Raycast' does not exist in the namespace 'Unity.Physics' (are you missing an assembly reference?)

Assets\Samples\Cinemachine\3.1.3\Shared Assets\Scripts\SimplePlayerOnSurface.cs(106,20): error CS0234: The type or namespace name 'Raycast' does not exist in the namespace 'Unity.Physics' (are you missing an assembly reference?)

Assets\Samples\Cinemachine\3.1.3\Shared Assets\Scripts\SimpleBullet.cs(37,21): error CS0234: The type or namespace name 'Raycast' does not exist in the namespace 'Unity.Physics' (are you missing an assembly reference?)

Assets\Samples\Cinemachine\3.1.3\Shared Assets\Scripts\SimplePlayerOnSurface.cs(188,21): error CS0234: The type or namespace name 'Raycast' does not exist in the namespace 'Unity.Physics' (are you missing an assembly reference?)

Assets\Samples\Cinemachine\3.1.3\Shared Assets\Scripts\SimplePlayerController.cs(378,17): error CS0234: The type or namespace name 'Raycast' does not exist in the namespace 'Unity.Physics' (are you missing an assembly reference?)

Cinemachine assumes PhysX, and so do the samples. To look at the samples, you must uninstall the Unity Physics package, or remove the sample scripts that conflict with it.

1 Like

Are you 100% sure the PhysX integration is now considered legacy?

Thanks for that correction, I’ve edited my post. PhysX is only legacy in my mind.

1 Like