jonkelling
36d70697db
Fix for issue #917 , Physics.P2.Body#addToWorld
...
Fix for issue #917 : Calling reset() on Sprite with a P2 body can result in body.data.world == null.
Calling addToWorld() would previously not check the _toRemove array, which could, if the timing were right, result in a Sprite being revived but then removed from the P2 World--the result of this being the Sprite's data would be in a mixed state causing it to appear visually but not function in the world.
2014-06-17 21:53:20 -05:00
photonstorm
88306b6e12
P2 World array reset fix.
2014-05-20 10:03:00 +01:00
photonstorm
bd4c2176f0
Added an additional tile index check to P2.World.convertTilemap.
2014-05-01 02:40:17 +01:00
photonstorm
b40769019b
The P2 DistanceConstraint method signature has changed. Updated Phaser so maxForce is now passed as object ( fix #788 )
2014-04-30 16:54:56 +01:00
photonstorm
fa613c5fe1
ScaleManager seeds _check private var with null to avoid later comparison check (thanks @jflowers45, fix #782 )
...
P2.Body.applyForce should have used pxmi instead of pxm (thanks @Trufi, fix #776 )
P2 fixed creation of RevoluteConstraint by passing maxForce in the options (thanks @woutercommandeur, fix #783 )
2014-04-29 19:34:38 +01:00
Wouter Commandeur
b1953bd0a0
fix creation of RevoluteConstraint by passing maxForce in the options
2014-04-29 20:12:56 +02:00
photonstorm
1d37cde66f
Updated p2 to latest build and patched for Float32Array + UMD issues.
2014-04-29 02:34:16 +01:00
photonstorm
251bc10327
jshint fixes.
2014-04-25 02:52:14 +01:00
Georgios Kaleadis
33fc41a9b0
fix comment
2014-04-24 11:59:55 +02:00
Georgios Kaleadis
339da73160
pausable p2 world
2014-04-24 11:56:52 +02:00
photonstorm
4ec5665148
Fixed #750 - Invalid typescript mapping for TileSprite.autoScroll function in TS defs.
...
Game checks if window.console exists before using it (should fix IE9 issues when dev tools are closed), however it is still used deeper in Pixi.
Body.loadData flagged as deprecated.
2014-04-22 23:31:07 +01:00
photonstorm
944e03ddb8
P2.Body.loadPolygon has been updated to correct center of mass issues (thanks @georgiee, fix #749 )
2014-04-22 22:33:25 +01:00
Georgios Kaleadis
c0189c02c1
fixed loadPolygon center of mass
2014-04-22 19:56:25 +02:00
Opher Vishnia
22b62726ad
Fixed typo in world.setMaterial
...
The function contained a typo: bodies is an Array and so bodies.setMaterial is undefined
2014-04-19 19:39:50 +03:00
photonstorm
e9cb345261
P2.World.convertTilemap now correctly checks the collides parameter of the tiles as it converts them.
2014-04-14 13:52:53 +01:00
photonstorm
a2b2d558a5
jsdoc and jshint fixes.
2014-04-11 03:02:19 +01:00
photonstorm
77f8e5eefc
P2 Fixtures Collection Class (@georgiee please test it works ok! #704 )
2014-04-11 00:43:30 +01:00
Richard Davey
b7b1e7428a
Merge pull request #704 from georgiee/fixture-list
...
P2 Fixtures Collection Class
2014-04-11 00:19:05 +01:00
photonstorm
a01cc2e1ca
Objects with an InputHandler now deactivate it when the object is removed from a Group but not destroyed ( fix #672 )
...
Lots of jsdoc fixes in Body and World.
Removed un-used events from World (such as onImpact).
2014-04-11 00:06:22 +01:00
Georgios Kaleadis
13e5cacd71
added a p2 fixture collections helper class
2014-04-10 23:45:35 +02:00
Georgios Kaleadis
1213cae0a4
additionally save fixtures by key
2014-04-10 21:28:14 +02:00
photonstorm
289b5b2532
Removed un-used vars.
2014-04-10 17:25:35 +01:00
photonstorm
9ddcc5d0ea
p2.World.defaultRestitution has been deprecated and is now p2.World.restitution.
...
p2.World.defaultFriction has been deprecated and is now p2.World.friction.
p2.World now uses 4 bodies for the world boundaries, rather than 1 body with 4 shapes. This helps the broadphase massively.
p2.World bounds are now included in the callback events such as beginContact and impact events.
2014-04-10 17:11:16 +01:00
photonstorm
780fb48ab3
P2.World has a new contactMaterial property, which can be configured like a normal P2 Contact Material and is applied when two bodies hit that don't have defined materials.
2014-04-10 14:51:20 +01:00
photonstorm
8449f77152
Fixed World.restitution typo.
...
Updated World to use the new p2 defaultContactMaterial.
2014-04-10 14:41:50 +01:00
photonstorm
8bb22551aa
Added jsdocs to Particle and Emitter. Fixed p2 UMD.
2014-04-10 01:48:55 +01:00
photonstorm
8fc2a465cd
New Phaser package, small docs updates and preparing P2.World for new bounds code and v0.5.0 migration.
2014-04-08 03:31:13 +01:00
photonstorm
451f68be96
Updated p2 to 6abc900ff9
(which has probably broken stuff, but we'll test it tomorrow).
2014-04-08 03:30:45 +01:00
photonstorm
01eec6cef5
Keyboard.stop nulls the function references after removing the event listeners (thanks @bmceldowney, #691 )
2014-04-07 12:29:26 +01:00
Georgios Kaleadis
0a456d81c1
remove physics loader flags in p2 world, fix naming in loader
2014-03-31 10:46:17 +03:00
Georgios Kaleadis
d2a348f0bb
return the result of body#setCircle
2014-03-28 09:48:23 +02:00
Richard Davey
2092a7e360
Merge pull request #653 from bmceldowney/dev
...
Removing tilemap layer retrieval for object layers in convertCollisionObjects()
2014-03-26 15:48:42 +00:00
Ben McEldowney
2cd538e498
removing erroneous tilemap layer retrieval for object layers in convertCollisionObjects()
2014-03-26 07:48:47 -07:00
Christian Wesselhoeft
1c286c1ae5
Fix jshint issues in src/physics/p2
2014-03-25 14:56:05 -07:00
Christian Wesselhoeft
61f18b675c
Trim trailing whitespace.
2014-03-25 14:56:04 -07:00
Georgios Kaleadis
c2964857a3
multiple circle shapes in a body with position
2014-03-21 20:45:25 +01:00
Richard Davey
51a2002bf8
Merge pull request #622 from georgiee/fix-prismatic-naming
...
Fixed bug in prismatic joint. Lock flag not inverted, updated naming & description
2014-03-21 14:09:14 +00:00
photonstorm
0fca997d43
P2.Body.loadPolygon no longer modifies the Cache array ( fix #613 )
2014-03-21 13:46:35 +00:00
Georgios Kaleadis
c686ea0eb5
fixed naming for rotation lock in prismatic joint
2014-03-21 14:13:06 +01:00
Richard Davey
f0034008f5
Merge pull request #614 from georgiee/physics-phaser-exporter
...
Custom PhysicsEditor export & new p2 polygon parsing
2014-03-21 11:27:13 +00:00
Georgios Kaleadis
f56f1674f7
pivots were wrong signed, everything was upside down
2014-03-21 09:49:51 +01:00
Georgios Kaleadis
a4982fa6e2
better fixture handling
2014-03-20 19:38:47 +01:00
Georgios Kaleadis
277afa1415
method docs
2014-03-20 15:46:54 +01:00
Georgios Kaleadis
af847de963
reverted p2 body debug
2014-03-20 15:44:41 +01:00
Georgios Kaleadis
45a41af766
exporter update
2014-03-20 15:27:50 +01:00
Georgios Kaleadis
66fa003901
custom export from physics editor
2014-03-20 13:38:25 +01:00
Georgios Kaleadis
5b78c5c46e
fixed wrong motion state constants in phaser p2 body
2014-03-19 22:56:26 +01:00
photonstorm
164f3cbe83
When creating a Sprite (via Group.create or directly) with exists = false and a P2 body, the body is not added to the world.
2014-03-19 13:09:29 +00:00
photonstorm
2ecb0c7c76
P2.removeBody will check if the body is part of the world before removing, this avoids a TypeError from the p2 layer.
2014-03-17 22:34:19 +00:00
photonstorm
08aa381238
p2 object re-created on system start.
2014-03-17 21:16:59 +00:00