ShapeConfig constructor

ShapeConfig({
  1. double friction = 0.4,
  2. double restitution = 0.4,
  3. double density = 1,
  4. int collidesWith = 0xffffffff,
  5. int belongsTo = 1,
  6. Shapes geometry = Shapes.none,
  7. Vec3? relativePosition,
  8. Mat33? relativeRotation,
})

Implementation

ShapeConfig({
  this.friction = 0.4,
  this.restitution = 0.4,
  this.density = 1,
  this.collidesWith = 0xffffffff,
  this.belongsTo =  1,
  this.geometry = Shapes.none,
  Vec3? relativePosition,
  Mat33? relativeRotation
}){
  this.relativePosition = relativePosition ?? Vec3();
  this.relativeRotation = relativeRotation ?? Mat33();
}