// Update is called once per frame void FixedUpdate() { if (rotate) { set_angle(steering_handler_i.getSteeringAngle()); } }
// 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(); }