ObjectConfigure constructor
ObjectConfigure({
- JointType type = JointType.none,
- List<
Shape> shapes = const [], - bool move = false,
- bool kinematic = false,
- bool neverSleep = false,
- bool sleep = false,
- ShapeConfig? shapeConfig,
- String? name,
- bool massPos = false,
- bool massRot = false,
- bool allowCollision = false,
- double? max,
- double? min,
- RigidBody? body1,
- RigidBody? body2,
- Vec3? position,
- Vec3? position2,
- Vec3? positionShape,
- Quat? rotation,
- Quat? rotationShape,
- Vec3? axis1,
- Vec3? axis2,
- double? motorSpeed,
- double? motorForce,
- int? springFrequency,
- double? dampingRatio,
- double? lowerMotorLimit,
- double? upperMotorLimit,
Implementation
ObjectConfigure({
this.type = JointType.none,
this.shapes = const [],
this.move = false,
this.kinematic = false,
this.neverSleep = false,
this.sleep = false,
ShapeConfig? shapeConfig,
this.name,
this.massPos = false,
this.massRot = false,
this.allowCollision = false,
double? max,
double? min,
this.body1,
this.body2,
Vec3? position,
Vec3? position2,
Vec3? positionShape,
Quat? rotation,
Quat? rotationShape,
//this.size = const [0,0,0],
Vec3? axis1,
Vec3? axis2,
this.motorSpeed,
this.motorForce,
this.springFrequency,
this.dampingRatio,
this.lowerMotorLimit,
this.upperMotorLimit
}){
this.position = position?.clone() ?? Vec3();
this.position2 = position2?.clone() ?? Vec3();
this.positionShape = positionShape?.clone() ?? Vec3();
this.rotation = rotation?.clone() ?? Quat();
this.rotationShape = rotationShape?.clone() ?? Quat();
this.axis1 = axis1?.clone() ?? Vec3();
this.axis2 = axis2?.clone() ?? Vec3();
this.shapeConfig = shapeConfig ?? ShapeConfig();
this.max = max ?? (JointType.distance == type?0:10);
this.min = min ?? (JointType.distance == type?0:57.29578);
}