Search Unity

A couple of noob questions about movement

Discussion in 'Scripting' started by Deleted User, Feb 14, 2016.

  1. Deleted User

    Deleted User

    Guest

    1. If I want to make a game like dark souls would you recommend I use a character controller or rigidbody?

    2. Will the following cause an input delay?

    A rigidbody, 60 fps, timestep of 0.0166667, interpolation to smoothen the movement, saving inputs from Update and applying them in FixedUpdate.
     
  2. LaneFox

    LaneFox

    Joined:
    Jun 29, 2011
    Posts:
    7,536
    You can do controllers with either approach. I suggest rigidbody designs. You'll use FixedUpdate() which basically makes frame rate irrelevant. Nothing is going to cause an input delay, but the input manager can change the gravity of inputs so they smoothly accelerate between min max values which could appear as an input delay. Your code could also be doing that. Mass and drag can also create a similar effect on the rigidbody settings.
     
  3. Deleted User

    Deleted User

    Guest

    Thank you for helping me out. As far as I understand from seaching internet the character will move jittery if I move a rigidbody during fixedupate unless an interpolation is used. Some frames it will move more than once and others not at all, but the interpolation will make it look smooth right?