Jump to content
The forums will be going offline for an extended maintenance period at 1400hrs GMT on 19th June 2025. The number of hours for this downtime is intentionally not advertised due to the nature of these upgrades. ×

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...