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,
Vector3? relativePosition,
Matrix3? relativeRotation
}){
this.relativePosition = relativePosition ?? Vector3.zero();
this.relativeRotation = relativeRotation ?? Matrix3.identity();
}