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; }
void Start() { drive_control = GetComponent <Drive_Control_CS>(); control_angles = GetComponent <Control_Angles>(); }
void Get_Drive_Control(Drive_Control_CS Temp_Script) { // Called from "Drive_Control" in the MainBody. Control_Script = Temp_Script; }