ShapeConfig constructor
ShapeConfig({})
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();
}