void Get_Drive_Control(Drive_Control_CS Temp_Script)
 { // Called from "Drive_Control" in the MainBody.
     Control_Script = Temp_Script;
     MaxAngVelocity = Mathf.Deg2Rad * ((Temp_Script.Max_Speed / (2.0f * Radius * 3.14f)) * 360.0f);
     // For physics bug of Unity5.
     MaxAngVelocity  = Mathf.Clamp(MaxAngVelocity, 0.0f, Temp_Script.MaxAngVelocity_Limit);
     Turn_Brake_Drag = Temp_Script.Turn_Brake_Drag;
 }
Пример #2
0
 void Start()
 {
     drive_control  = GetComponent <Drive_Control_CS>();
     control_angles = GetComponent <Control_Angles>();
 }
Пример #3
0
 void Get_Drive_Control(Drive_Control_CS Temp_Script)
 { // Called from "Drive_Control" in the MainBody.
     Control_Script = Temp_Script;
 }