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
* Sets the number of updates in which this body must have near-zero velocity before it is set as sleeping (if sleeping is enabled by the engine).
20
47
*
@@ -23,7 +50,7 @@ var Sleep = {
23
50
*
24
51
* @param {number} [value=60] - A `Number` that defines the number of updates in which this body must have near-zero velocity before it is set as sleeping.
25
52
*
26
-
* @return {Phaser.GameObjects.GameObject} This Game Object.
53
+
* @return {this} This Game Object.
27
54
*/
28
55
setSleepThreshold: function(value)
29
56
{
@@ -48,7 +75,7 @@ var Sleep = {
48
75
* @param {boolean} start - `true` if you want the sleep start event to be emitted for this body.
49
76
* @param {boolean} end - `true` if you want the sleep end event to be emitted for this body.
50
77
*
51
-
* @return {Phaser.GameObjects.GameObject} This Game Object.
78
+
* @return {this} This Game Object.
52
79
*/
53
80
setSleepEvents: function(start,end)
54
81
{
@@ -66,7 +93,7 @@ var Sleep = {
66
93
*
67
94
* @param {boolean} value - `true` to enable the sleep event, or `false` to disable it.
68
95
*
69
-
* @return {Phaser.GameObjects.GameObject} This Game Object.
96
+
* @return {this} This Game Object.
70
97
*/
71
98
setSleepStartEvent: function(value)
72
99
{
@@ -95,7 +122,7 @@ var Sleep = {
95
122
*
96
123
* @param {boolean} value - `true` to enable the sleep event, or `false` to disable it.
97
124
*
98
-
* @return {Phaser.GameObjects.GameObject} This Game Object.
0 commit comments