I am trying to use [UnitySteer][1] and to Add the components with js.
for (i = 0; i < lowR.length; i++) {
lowR*.AddComponent("Rigidbody");*
_ lowR*.rigidbody.useGravity = false;_
_ lowR.rigidbody.isKinematic = true;*_
_ lowR*.AddComponent(“Radar”);
lowR.GetComponent (“Radar”).LayersChecked = 1 << 9;
lowR.GetComponent (“Radar”).DetectionRadius = 300;
lowR.GetComponent (“Radar”).DrawGizmos = true;*_
_ lowR*.AddComponent(“Biped”);*_
_ lowR*.AddComponent(“SteerForNeighborGroup”);
lowR.GetComponent (“SteerForNeighborGroup”).MaxRadius = 50;*_
_ lowR*.AddComponent(“SteerForCohesion”);
lowR.GetComponent (“SteerForCohesion”).enabled = true;*_
_ lowR*.AddComponent(“SteerForSeparation”);
lowR.GetComponent (“SteerForSeparation”).enabled = true;
}*_
everything gets added properly but Steer for Cohesion and Steer for Separation components are disabled and .enabled is not working, .active as well. I also tried in C# with no luck.
_*[1]: https://github.com/ricardojmendez/UnitySteer*_