mirror of
https://github.com/photonstorm/phaser
synced 2024-12-21 02:23:29 +00:00
1 line
1.2 KiB
JSON
1 line
1.2 KiB
JSON
|
{"class":{"name":"Phaser.Physics.P2.GearConstraint","extends":"","static":false,"constructor":true,"parameters":[{"name":"world","type":["Phaser.Physics.P2"],"help":"A reference to the P2 World.","optional":false,"default":null},{"name":"bodyA","type":["p2.Body"],"help":"First connected body.","optional":false,"default":null},{"name":"bodyB","type":["p2.Body"],"help":"Second connected body.","optional":false,"default":null},{"name":"angle","type":["number"],"help":"The relative angle","optional":true,"default":"0"},{"name":"ratio","type":["number"],"help":"The gear ratio.","optional":true,"default":"1"}],"help":"Connects two bodies at given offset points, letting them rotate relative to each other around this point."},"consts":[],"methods":{"public":[],"protected":[],"private":[],"static":[]},"properties":{"public":[{"name":"game","type":["Phaser.Game"],"help":"","inlineHelp":"Local reference to game.","line":26,"default":null,"public":true,"protected":false,"private":false,"readOnly":false},{"name":"world","type":["Phaser.Physics.P2"],"help":"","inlineHelp":"Local reference to P2 World.","line":31,"default":null,"public":true,"protected":false,"private":false,"readOnly":false}],"protected":[],"private":[]}}
|