예제 #1
0
 // Update is called once per frame
 void FixedUpdate()
 {
     if (rotate)
     {
         set_angle(steering_handler_i.getSteeringAngle());
     }
 }
예제 #2
0
 // Update is called once per frame
 void FixedUpdate()
 {
     current_vel = transform.InverseTransformVector(rigid_body.velocity);
     if (rotate)
     {
         set_angle(steering_handler_i.getSteeringAngle());
     }
     if (power)
     {
         accelerate(acceleration);
     }
     apply_sideways_friction();
 }