mirror of
https://github.com/photonstorm/phaser
synced 2024-12-30 15:03:16 +00:00
1 line
3 KiB
JSON
1 line
3 KiB
JSON
|
{"class":{"name":"Phaser.Physics.P2.ContactMaterial","extends":"","static":false,"constructor":true,"parameters":[{"name":"materialA","type":["Phaser.Physics.P2.Material"],"help":"First material participating in the contact material.","optional":false,"default":null},{"name":"materialB","type":["Phaser.Physics.P2.Material"],"help":"Second material participating in the contact material.","optional":false,"default":null},{"name":"options","type":["object"],"help":"Additional configuration options.","optional":true,"default":null}],"help":"Defines a physics material"},"consts":[],"methods":{"public":[],"protected":[],"private":[],"static":[]},"properties":{"public":[{"name":"[friction=0.3]","type":["number"],"help":"","inlineHelp":"Friction to use in the contact of these two materials.","line":33,"default":null,"public":true,"protected":false,"private":false,"readOnly":false},{"name":"[frictionRelaxation=3]","type":["number"],"help":"","inlineHelp":"Relaxation of the resulting FrictionEquation that this ContactMaterial generate.","line":53,"default":null,"public":true,"protected":false,"private":false,"readOnly":false},{"name":"[frictionStiffness=1e7]","type":["number"],"help":"","inlineHelp":"Stiffness of the resulting FrictionEquation that this ContactMaterial generate.","line":49,"default":null,"public":true,"protected":false,"private":false,"readOnly":false},{"name":"[relaxation=3]","type":["number"],"help":"","inlineHelp":"Relaxation of the resulting ContactEquation that this ContactMaterial generate.","line":45,"default":null,"public":true,"protected":false,"private":false,"readOnly":false},{"name":"[restitution=0.0]","type":["number"],"help":"","inlineHelp":"Restitution to use in the contact of these two materials.","line":37,"default":null,"public":true,"protected":false,"private":false,"readOnly":false},{"name":"[stiffness=1e7]","type":["number"],"help":"","inlineHelp":"Stiffness of the resulting ContactEquation that this ContactMaterial generate.","line":41,"default":null,"public":true,"protected":false,"private":false,"readOnly":false},{"name":"[surfaceVelocity=0]","type":["number"],"help":"","inlineHelp":"Will add surface velocity to this material. If bodyA rests on top if bodyB, and the surface velocity is positive, bodyA will slide to the right.","line":57,"default":null,"public":true,"protected":false,"private":false,"readOnly":false},{"name":"id","type":["number"],"help":"","inlineHelp":"The contact material identifier.","line":21,"default":null,"public":true,"protected":false,"private":false,"readOnly":false},{"name":"materialA","type":["Phaser.Physics.P2.Material"],"help":"","inlineHelp":"First material participating in the contact material.","line":25,"default":null,"public":true,"protected":false,"private":false,"readOnly":false},{"name":"materialB","type":["Phaser.Physics.P2.Material"],"help":"","inlineHelp":"Second material participating in the contact material.","line":29,"default":null,"public":true,"protected":false,"private":false,"readOnly":false}],"protected":[],"private":[]}}
|