playMaker

Author Topic: Crowd Simulation  (Read 944 times)

heavygunner

  • Sr. Member
  • ****
  • Posts: 344
Crowd Simulation
« on: January 12, 2019, 04: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 ?

RobotGoggles

  • Playmaker Newbie
  • *
  • Posts: 35
Re: Crowd Simulation
« Reply #1 on: January 12, 2019, 10: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.