Jump to content

Lily Cumming

Members
  • Posts

    1
  • Joined

  • Last visited

Everything posted by Lily Cumming

  1. You can try my method, you have to calculate the new direction: Once you determine that the NPC has an effect on the player, you can calculate the direction that the NPC needs to change direction to avoid the next collision. This calculation may include: * Calculate the direction vector from the NPC's position to the player's position. *Adjust NPC navigation based on this vector, for example using the lerp (linear interpolation) method to make navigation smoother. You can also go to Google to find out how to do it suitable for your game
×
×
  • Create New...