mirror of
https://github.com/photonstorm/phaser
synced 2025-02-16 14:08:28 +00:00
Update CHANGELOG.md
This commit is contained in:
parent
eb254f0c5c
commit
f18c6b5fda
1 changed files with 1 additions and 0 deletions
|
@ -95,6 +95,7 @@
|
|||
* The `Matter.Mass.centerOfMass` component property now returns the pre-calculated Body `centerOfMass` property, which is much more accurate than the previous bounds offset value.
|
||||
* `Matter.setExistingBody`, which is called interally whenever a Body is set on a Game Object, now uses the new `centerOffset` values to ensure that the texture frame is correctly centered based on the center of mass, not the Body bounds, allowing for much more accurate body to texture mapping with complex multi-part compound bodies.
|
||||
* The `Matter.PhysicsEditorParser` has been updated so it no longer needs to set the render offsets, and instead uses the center of mass values.
|
||||
* If the `Matter.Body` config doesn't contain a `position` property, it will now default to using `Vertices.centre(body.vertices)` as the position. In most cases, this is what you need, so it saves having to pass it in the config object.
|
||||
|
||||
### Updates
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue