Character collision

  • #1, by dos4gwWednesday, 09. September 2015, 22:59 9 years ago
    I'm using the chase command heavily in my game. Is there a way to prevent characters from passing through each other?

    Newbie

    69 Posts


  • #2, by afrlmeWednesday, 09. September 2015, 23:43 9 years ago
    Try setting a larger radius. The closer the characters are the more likely that they may end up passing through each other.

    Technically you could also program basic character collision detection by querying if active characters radius is inside of another characters radius. It requires Lua script mind & determining what the character should do if it overlaps another characters radius is a little complicated as you have to consider direction & destination of both characters. Plus the characters are 2D.

    Imperator

    7278 Posts