Skip to main content
added 150 characters in body
Source Link
Megasa3
  • 167
  • 7

They can read the coords from a file or a server but also with a ray collision detection system. It is common to use rays that goes from the bot(in that case) to outside him. If the ray collides with something then it returns some information to the bot such as if what the ray found was a player, a bot, an animal or a simple wall. That is because in the case of the player and the bot for example they have an invisible capsule that involves them entirely with information about its type for example (human, bot, ...). With that they can avoid crashing with walls and other elemnts if they are following you for example.

You can see the part Collision detection of this Page

They can read the coords from a file or a server but also with a ray. It is common to use rays that goes from the bot to outside him. If the ray collides with something then it returns some information to the bot such as if what the ray found was a player, a bot, an animal or a simple wall. With that they can avoid crashing with walls and other elemnts if they are following you for example.

They can read the coords from a file or a server but also with a ray collision detection system. It is common to use rays that goes from the bot(in that case) to outside him. If the ray collides with something then it returns some information to the bot such as if what the ray found was a player, a bot, an animal or a simple wall. That is because in the case of the player and the bot for example they have an invisible capsule that involves them entirely with information about its type for example (human, bot, ...). With that they can avoid crashing with walls and other elemnts if they are following you for example.

You can see the part Collision detection of this Page

Source Link
Megasa3
  • 167
  • 7

They can read the coords from a file or a server but also with a ray. It is common to use rays that goes from the bot to outside him. If the ray collides with something then it returns some information to the bot such as if what the ray found was a player, a bot, an animal or a simple wall. With that they can avoid crashing with walls and other elemnts if they are following you for example.