// Use this for initialization void Start() { sp = GetComponent <SteeringParams>(); charRigidBody = GetComponent <Kinematic>(); align = GetComponent <DynoAlign>(); goal = GetComponent <GoalNamespace.Goal>().getGoal(); }
public Vector3 SimulateSteering(Vector3 startNode, Vector3 endNode, SteeringParams SP, float time) { var direction = endNode - startNode; var _velc = (direction).normalized * SP.MAXSPEED; return(startNode + _velc * time); }
// Use this for initialization void Start() { goalObject = GetComponent <GoalNamespace.Goal>(); goalSwitcher = GetComponent <GoalNamespace.GoalSwitcher>(); sp = GetComponent <SteeringParams>(); charRigidBody = GetComponent <Kinematic>(); }
// Use this for initialization void Start() { sp = GetComponent <SteeringParams>(); position = this.transform.position; velc = new Vector3(0f, 0f, 0f); rotation = 0f; orientation = 0f; }
// Use this for initialization void Start() { sp = GetComponent <SteeringParams>(); velc = new Vector3(0f, 0f, 0f); rotation = 0f; orientation = 0f; }
// Use this for initialization void Start() { goalObject = GetComponent <Goal>(); sp = GetComponent <SteeringParams>(); }
// Use this for initialization void Start() { goalObject = GetComponent <Goal>(); sp = GetComponent <SteeringParams>(); charRigidBody = GetComponent <Kinematic>(); }
// Use this for initialization void Start() { goalObject = GetComponent <GoalNamespace.Goal>(); sp = GetComponent <SteeringParams>(); charRigidBody = GetComponent <Rigidbody>(); }
// Use this for initialization void Start() { sp = GetComponent <SteeringParams>(); goalObject = GetComponent <GoalNamespace.Goal>(); }