LimitMotor constructor

LimitMotor(
  1. Vector3 axis, [
  2. bool fixed = false
])

An information of limit and motor.

axis the axis of the motor

fixed if fixed set a lower limit

Implementation

LimitMotor(this.axis, [this.fixed = false]) {
  lowerLimit = fixed?0:1;
}