How to make a Avatar to walk in step?

(2 posts) (2 voices)
  • Started 3 years ago by sunder3dvia
  • Latest reply from iainB85


No tags yet.

  1. sunder3dvia

    Joined: Jul '16
    Posts: 278


    Once I import my avatar into my working space, I get all the related animations. I am able to set them for the avatar. It looks real when the avatar walks forward and backward. I would like to know, how to give more realistic animation when the avatar walks on the step?

    Can anyone tell me how to implement it. Please awaiting for your reply!

    Posted 3 years ago #
  2. iainB85

    Interplanetary Delivery Boy
    Joined: Jun '08
    Posts: 515

    I think the easiest strategy is to just use an invisible ramp for your avatar to walk up rather than the actual geometry of the stairs. In a lot of (even modern) games if you look closely the feet don't match up with stairs very well at all... in fact if they did, it would probably be more frustrating than useful as it would take longer and feel more clunky to get up the stairs in a fast paced game.

    I found an interesting discussion on it here.

    Generally in FPSes, this is done how Macada suggests.

    When you hit a "wall", you check for a collision at the character's "step height up + step distance forward" (let's call this point "step destination") and if there's no collision, then you've got a step, so you check for the step height by casting down from "step destination." Then you can translate/interpolate your character to "step destination", either by going up then forward, or a simpler diagonal translation, supported by a "step walk" animation.

    You can use the same method for climbing/mantling onto objects (like boxes), by checking "climb height up + step distance forward" as a "climb destination" and using a "climb" animation instead of a "step walk."

    A much easier way, especially if you're using physics and a "rolling" character collision mesh, is to use an invisible ramp for stairs instead

    Posted 3 years ago #


You must log in to post.