UnityPhysicsSamples Demos CharacterController inputs?

Hello,

Trying out CharacterController from the Physics Samples demo:
https://github.com/Unity-Technologies/EntityComponentSystemSamples/tree/master/UnityPhysicsSamples/Assets/Demos/6. Use Cases/CharacterController/Scripts

When I hit play, the camera pans to the Character but key presses don’t make the Character move or anything. Usually these demos work straight out of the box so I tried updating installation and packages but no luck so far. Guessing that I need to set up an input system to map keys to actions? In the CharacterControllerAuthoring.cs script there’s no keypress definitions so I don’t know how the system works. Hoping one of you folks could provide some guidance please.

Thanks,
Nate B

Not sure exactly what is going on. It works locally for me but a few folk had similar problems before. See: Unity.Physics 0.5.1 breaks through!

1 Like

Works great now - much appreciated! Here’s a screenshot for anyone that needs it:

1 Like

Dame,it works,but why

Check the DemoInputGatheringSystem code here:
https://github.com/Unity-Technologies/EntityComponentSystemSamples/blob/master/UnityPhysicsSamples/Assets/Common/Scripts/DemoInputGatheringSystem.cs
AFIK this is the class that is responsible for converting data from the new input system to the character controller ECS part. And as you can see it only works if UNITY_INPUT_SYSTEM_EXISTS is defined.

1 Like