Shape constructor
Shape({})
Implementation
Shape({
/**
* The type of this shape.
*/
this.type =ShapeType.sphere,
/**
* Whether to produce contact forces when in contact with other bodies.
* @default true
*/
this.collisionResponse = true,
/**
* @default 1
*/
this.collisionFilterGroup = -1,
/**
* @default -1
*/
this.collisionFilterMask = -1,
/**
* Optional material of the shape that regulates contact properties.
* @default null
* @todo check this, the material is passed to the body, right?
*/
this.boundingSphereRadius = 0,
this.material,
this.body
}) {
id = Shape.idCounter++;
}