You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/physics/p2/PrismaticConstraint.js
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -13,15 +13,15 @@
13
13
* @param {Phaser.Physics.P2} world - A reference to the P2 World.
14
14
* @param {p2.Body} bodyA - First connected body.
15
15
* @param {p2.Body} bodyB - Second connected body.
16
-
* @param {boolean} [lock=false] - If set to true, bodyB will be free to rotate around its anchor point.
16
+
* @param {boolean} [lockRotation=true] - If set to false, bodyB will be free to rotate around its anchor point.
17
17
* @param {Array} [anchorA] - Body A's anchor point, defined in its own local frame. The value is an array with 2 elements matching x and y, i.e: [32, 32].
18
18
* @param {Array} [anchorB] - Body A's anchor point, defined in its own local frame. The value is an array with 2 elements matching x and y, i.e: [32, 32].
19
19
* @param {Array} [axis] - An axis, defined in body A frame, that body B's anchor point may slide along. The value is an array with 2 elements matching x and y, i.e: [32, 32].
20
20
* @param {number} [maxForce] - The maximum force that should be applied to constrain the bodies.
* @param {Phaser.Sprite|Phaser.Physics.P2.Body|p2.Body} bodyA - First connected body.
880
880
* @param {Phaser.Sprite|Phaser.Physics.P2.Body|p2.Body} bodyB - Second connected body.
881
-
* @param {boolean} [lock=false] - If set to true, bodyB will be free to rotate around its anchor point.
881
+
* @param {boolean} [lockRotation=true] - If set to false, bodyB will be free to rotate around its anchor point.
882
882
* @param {Array} [anchorA] - Body A's anchor point, defined in its own local frame. The value is an array with 2 elements matching x and y, i.e: [32, 32].
883
883
* @param {Array} [anchorB] - Body A's anchor point, defined in its own local frame. The value is an array with 2 elements matching x and y, i.e: [32, 32].
884
884
* @param {Array} [axis] - An axis, defined in body A frame, that body B's anchor point may slide along. The value is an array with 2 elements matching x and y, i.e: [32, 32].
885
885
* @param {number} [maxForce] - The maximum force that should be applied to constrain the bodies.
886
886
* @return {Phaser.Physics.P2.PrismaticConstraint} The constraint
0 commit comments