Example #1
0
 // 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);
        }
Example #3
0
 // 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;
    }
Example #5
0
    // Use this for initialization
    void Start()
    {
        sp = GetComponent <SteeringParams>();


        velc        = new Vector3(0f, 0f, 0f);
        rotation    = 0f;
        orientation = 0f;
    }
Example #6
0
 // Use this for initialization
 void Start()
 {
     goalObject = GetComponent <Goal>();
     sp         = GetComponent <SteeringParams>();
 }
Example #7
0
 // Use this for initialization
 void Start()
 {
     goalObject    = GetComponent <Goal>();
     sp            = GetComponent <SteeringParams>();
     charRigidBody = GetComponent <Kinematic>();
 }
Example #8
0
 // Use this for initialization
 void Start()
 {
     goalObject    = GetComponent <GoalNamespace.Goal>();
     sp            = GetComponent <SteeringParams>();
     charRigidBody = GetComponent <Rigidbody>();
 }
Example #9
0
 // Use this for initialization
 void Start()
 {
     sp         = GetComponent <SteeringParams>();
     goalObject = GetComponent <GoalNamespace.Goal>();
 }