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
P2.Body now uses the new Body.type value instead of Body.motionState, however as P2.Body already have a property called type we have left the motionState getter/setter in for now.
* TypeScript definition updates to help fix for the `noimplicitany` option (thanks @Waog#1088)
74
74
* All of the Pixi geom classes have been removed from the build file as they aren't needed (the Phaser.Geom classes overwrite them), saving some space in the process.
75
75
76
-
### p2.js changes
77
-
78
-
* DistanceConstraint signature changed to take the new localAnchors.
79
-
* RevoluteConstraint signature changed to include worldPivot
80
-
81
76
### New Features
82
77
83
78
* Device will now detect for Kindle and PS Vita (thanks @lucbloom)
* Group.swap() updates the Z index values properly (thanks @Blank101#1090)
97
92
* Device now recognises ChromeOS as a desktop (thanks @alvinsight@hilts-vaughan#1091)
98
93
94
+
### p2.js 0.6.0 Changes
95
+
96
+
* DistanceConstraint signature changed to take the new localAnchors.
97
+
* RevoluteConstraint signature changed to include worldPivot
98
+
* P2.Body now uses the new Body.type value instead of Body.motionState, however as P2.Body already have a property called `type` we have left the `motionState` getter/setter in for now.
99
+
100
+
#### Breaking changes
101
+
102
+
* Renamed property .motionState to .type in class Body.
103
+
* Changed constructor of RevoluteConstraint. Now the local pivots are passed as options instead of direct arguments. See the constraints demo.
104
+
* Removed World.prototype.toJSON and .fromJSON.
105
+
* Removed properties .enableBodySleeping and .enableIslandSleeping from World instances. The enum .sleepMode can be used instead. See the sleep demo.
106
+
* Converted Spring to a base class for the new LinearSpring and RotationalSpring classes. LinearSpring can be used as the old Spring.
107
+
* Utils.ARRAY_TYPE can now be overridden by injecting a global called P2_ARRAY_TYPE. Support for GLMAT_ARRAY_TYPE has been removed.
108
+
109
+
#### Other changes
110
+
111
+
* Added flag .enableFrictionReduction to Narrowphase.
112
+
* Added RevoluteConstraint.prototype.setLimits.
113
+
* Added PrismaticConstraint.prototype.setLimits.
114
+
* LockConstraint, DistanceConstraint, and GearConstraint can now be constructed from current body transforms.
115
+
* RevoluteConstraint can now be constructed from the current body transforms and a world point.
116
+
* Material id can now be passed via constructor.
117
+
* ContactMaterial instances now have a property .contactSkinSize.
118
+
* Added method Body.prototype.getAABB.
119
+
* Limits for DistanceConstraint. See the DistanceConstraint demo.
120
+
* Added Body.prototype.overlaps.
121
+
* Added class OverlapKeeper.
122
+
* If substepping is used in World.prototype.step, the substeps are aborted if slower than real time.
123
+
* Added Heightfield/Convex and Heightfield/Circle collision support.
124
+
* Added property .overlapKeeper to World.
125
+
* EventEmitter.prototype.has can now check if any listeners were added to a given topic.
126
+
* Added Utils.defaults.
127
+
128
+
99
129
The full Change Log is at https://github.com/photonstorm/phaser/blob/master/CHANGELOG.md
0 commit comments