コード例 #1
0
 /// <summary>
 /// ■rigidbody:自分の車のRigidbody
 /// ■transform:自分の車のtrasnform
 /// ■wheelParams:タイヤの各状態時の滑り具合
 /// </summary>
 /// <param name="rigidbody"></param>
 public VehicleMove(Rigidbody rigidbody, Transform transform, WheelParams wheelParams,
                    VehicleSettings.DriftSettings driftSettings, VehicleSettings.SteerSensitivities steerSensitivities)
 {
     mRigidbody      = rigidbody;
     mTransform      = transform;
     mWheelParams    = wheelParams;
     mSteeringScript = new SteeringScript(steerSensitivities);
     mDriftScript    = new DriftScript(driftSettings);
 }
コード例 #2
0
 public SteeringScript(VehicleSettings.SteerSensitivities steerSensitivities)
 {
     mSensitivities = steerSensitivities;
 }