Author Topic: Crowd Simulation  (Read 215 times)


  • Full Member
  • ***
  • Posts: 148
    • View Profile
Crowd Simulation
« on: January 12, 2019, 02:54:34 PM »
Hi !

I am looking for a crowd function.
Pls see this Short Video :
When Player touches neutral objects, They should be Player's team and should Follow Player.

What I did >
1. Once Player collided neutral Object, It become child of Player.
Result : It gave weird movement.

2. I set neutral object as Nav mesh agent and once Player hit them, They will follow Player. (Navmesh agent destination as gameobject  ==> I set Player as destination)

Result : Much better result. But, All AI's hitting Player and Player flying on Air. Disable rigidbody, got nice results. But, Still speed problems.

Anyone have better idea to make it more better ?


  • Playmaker Newbie
  • *
  • Posts: 9
    • View Profile
Re: Crowd Simulation
« Reply #1 on: January 12, 2019, 08:42:24 PM »
You can fix the Player flying in the air by going into the properties for the Player's rigidbody and freeze position on the Y axis.
When life hands you insomnia, make video games.