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,
- Vector3? position,
- Vector3? position2,
- Vector3? positionShape,
- Quaternion? rotation,
- Quaternion? rotationShape,
- Vector3? axis1,
- Vector3? 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,
Vector3? position,
Vector3? position2,
Vector3? positionShape,
Quaternion? rotation,
Quaternion? rotationShape,
//this.size = const [0,0,0],
Vector3? axis1,
Vector3? axis2,
this.motorSpeed,
this.motorForce,
this.springFrequency,
this.dampingRatio,
this.lowerMotorLimit,
this.upperMotorLimit
}){
this.position = position?.clone() ?? Vector3.zero();
this.position2 = position2?.clone() ?? Vector3.zero();
this.positionShape = positionShape?.clone() ?? Vector3.zero();
this.rotation = rotation?.clone() ?? Quaternion(0,0,0,1);
this.rotationShape = rotationShape?.clone() ?? Quaternion(0,0,0,1);
this.axis1 = axis1?.clone() ?? Vector3.zero();
this.axis2 = axis2?.clone() ?? Vector3.zero();
this.shapeConfig = shapeConfig ?? ShapeConfig();
this.max = max ?? (JointType.distance == type?0:10);
this.min = min ?? (JointType.distance == type?0:57.29578);
}