Playmaker Forum

Playmaker Help & Tips => Playmaker Help => Topic started by: heavygunner on January 12, 2019, 02:54:34 PM

Title: Crowd Simulation
Post by: heavygunner on January 12, 2019, 02:54:34 PM
Hi !

I am looking for a crowd function.
Pls see this Short Video : https://www.youtube.com/watch?v=T7ahiubmYe8

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 ?
Title: Re: Crowd Simulation
Post by: RobotGoggles 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.