Skip to content

Commit 4efac73

Browse files
committed
p2.createContactMaterial() options parameter should be object
1 parent da5a948 commit 4efac73

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

build/phaser.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3404,7 +3404,7 @@ declare module Phaser {
34043404
createBody(x: number, y: number, mass: number, addToWorld?: boolean, options?: Object, data?: Object): Phaser.Physics.P2.Body;
34053405
createCollisionGroup(group?: Phaser.Group): Phaser.Physics.P2.CollisionGroup;
34063406
createCollisionGroup(group?: Phaser.Sprite): Phaser.Physics.P2.CollisionGroup;
3407-
createContactMaterial(materialA: Phaser.Physics.P2.Material, materialB: Phaser.Physics.P2.Material, options?: number): Phaser.Physics.P2.ContactMaterial;
3407+
createContactMaterial(materialA: Phaser.Physics.P2.Material, materialB: Phaser.Physics.P2.Material, options?: object): Phaser.Physics.P2.ContactMaterial;
34083408
createDistanceConstraint(bodyA: any, bodyB: any, distance: number, maxForce?: number): Phaser.Physics.P2.DistanceConstraint;
34093409
createGearConstraint(bodyA: any, bodyB: any, angle?: number, ratio?: number): Phaser.Physics.P2.GearConstraint;
34103410
createLockConstraint(bodyA: any, bodyB: any, offset: Float32Array, angle?: number, maxForce?: number): Phaser.Physics.P2.LockConstraint;

0 commit comments

Comments
 (0)