Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

UnityPhysicsSamples Demos CharacterController inputs?

Discussion in 'Physics for ECS' started by impulse_ctrl, Feb 15, 2021.

  1. impulse_ctrl

    impulse_ctrl

    Joined:
    Dec 20, 2019
    Posts:
    6
    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
     
    Last edited: Feb 15, 2021
  2. steveeHavok

    steveeHavok

    Joined:
    Mar 19, 2019
    Posts:
    481
    impulse_ctrl likes this.
  3. impulse_ctrl

    impulse_ctrl

    Joined:
    Dec 20, 2019
    Posts:
    6
    Works great now - much appreciated! Here's a screenshot for anyone that needs it:

     
    petarmHavok likes this.
  4. lvcoc

    lvcoc

    Joined:
    Jul 26, 2018
    Posts:
    9
    Dame,it works,but why
     
  5. DevViktoria

    DevViktoria

    Joined:
    Apr 6, 2021
    Posts:
    94
    bb8_1 likes this.