Shape constructor

Shape(
  1. ShapeConfig config
)

Implementation

Shape(ShapeConfig config){
  relativePosition = Vec3().copy( config.relativePosition );
  relativeRotation = Mat33().copy( config.relativeRotation );

  density = config.density;
  friction = config.friction;
  restitution = config.restitution;
  belongsTo = config.belongsTo;
  collidesWith = config.collidesWith;
  type = config.geometry;
}