Exemple #1
0
        //Copy data from car to this car
        public Car(Car car)
        {
            this.pos           = car.pos;
            this.heading       = car.heading;
            this.turningRadius = car.turningRadius;

            this.gear     = car.gear;
            this.steering = car.steering;
        }
Exemple #2
0
 public Car(Vector3 pos, float headingInRadians, float turningRadius, Gear gear, Steering steering) : this(pos, headingInRadians, turningRadius)
 {
     this.gear     = gear;
     this.steering = steering;
 }