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
* This method is an alias for `Factory.pointerConstraint`.
746
-
*
746
+
*
747
747
* A Pointer Constraint is a special type of constraint that allows you to click
748
748
* and drag bodies in a Matter World. It monitors the active Pointers in a Scene,
749
749
* and when one is pressed down it checks to see if that hit any part of any active
750
750
* body in the world. If it did, and the body has input enabled, it will begin to
751
751
* drag it until either released, or you stop it via the `stopDrag` method.
752
-
*
752
+
*
753
753
* You can adjust the stiffness, length and other properties of the constraint via
754
754
* the `options` object on creation.
755
755
*
@@ -771,7 +771,7 @@ var Factory = new Class({
771
771
* and when one is pressed down it checks to see if that hit any part of any active
772
772
* body in the world. If it did, and the body has input enabled, it will begin to
773
773
* drag it until either released, or you stop it via the `stopDrag` method.
774
-
*
774
+
*
775
775
* You can adjust the stiffness, length and other properties of the constraint via
776
776
* the `options` object on creation.
777
777
*
@@ -800,7 +800,7 @@ var Factory = new Class({
800
800
801
801
/**
802
802
* Creates a Matter Physics Image Game Object.
803
-
*
803
+
*
804
804
* An Image is a light-weight Game Object useful for the display of static images in your game,
805
805
* such as logos, backgrounds, scenery or other non-animated elements. Images can have input
806
806
* events and physics bodies, or be tweened, tinted or scrolled. The main difference between an
@@ -885,10 +885,10 @@ var Factory = new Class({
885
885
886
886
/**
887
887
* Takes an existing Game Object and injects all of the Matter Components into it.
888
-
*
888
+
*
889
889
* This enables you to use component methods such as `setVelocity` or `isSensor` directly from
890
890
* this Game Object.
891
-
*
891
+
*
892
892
* You can also pass in either a Matter Body Configuration object, or a Matter Body instance
893
893
* to link with this Game Object.
894
894
*
@@ -899,7 +899,7 @@ var Factory = new Class({
899
899
* @param {(Phaser.Types.Physics.Matter.MatterBodyConfig|MatterJS.Body)} [options] - A Matter Body configuration object, or an instance of a Matter Body.
900
900
* @param {boolean} [addToWorld=true] - Add this Matter Body to the World?
901
901
*
902
-
* @return {Phaser.GameObjects.GameObject} The Game Object that had the Matter Components injected into it.
902
+
* @return {Phaser.Physics.Matter.MatterGameObject} The Game Object that had the Matter Components injected into it.
0 commit comments