JointConfig constructor

JointConfig({
  1. RigidBody? body1,
  2. RigidBody? body2,
  3. double scale = 1,
  4. double invScale = 1,
  5. bool allowCollision = false,
  6. Vec3? localAnchorPoint1,
  7. Vec3? localAnchorPoint2,
  8. Vec3? localAxis1,
  9. Vec3? localAxis2,
})

Implementation

JointConfig({
  this.body1,
  this.body2,
  this.scale = 1,
  this.invScale= 1,
  this.allowCollision = false,
  Vec3? localAnchorPoint1,
  Vec3? localAnchorPoint2,
  Vec3? localAxis1,
  Vec3? localAxis2
}){
  this.localAnchorPoint1 = localAnchorPoint1 ?? Vec3();
  this.localAnchorPoint2 = localAnchorPoint2 ?? Vec3();
  this.localAxis1 = localAxis1 ?? Vec3();
  this.localAxis2 = localAxis2 ?? Vec3();
}