photonstorm
4505aa50f6
Integrated SAT. Fixed lots of examples. Fixed documentation. Added new examples and built new phaser.js file for testing.
2014-01-27 06:29:26 +00:00
photonstorm
45518b3ecd
Adding checkCollision tests.
2014-01-24 17:30:37 +00:00
photonstorm
ea9e22f472
SAT implemented and working nicely at long last :)
2014-01-23 21:45:35 +00:00
photonstorm
110ab4e253
More robust gravity handling avoiding 'sticky walls'. Added new platform test with mixture of mass tile collision and physics.
2014-01-23 01:50:43 +00:00
photonstorm
20108e47f3
Working through re-integrating tilemap collision. So far, so good.
2014-01-22 16:16:53 +00:00
photonstorm
1370ba52b5
Fixed Sci-Fly and restored tile collision handling.
2014-01-22 14:49:06 +00:00
photonstorm
b2c49ef853
Merging previous changes back in again.
2014-01-22 14:31:18 +00:00
photonstorm
15a002e720
Finally getting there! Body collision almost as good as it can be (without a full-on physics system). Just a few last tweaks to do.
2014-01-21 16:12:50 +00:00
photonstorm
128c7143d5
Lots more physics tests and updates.
...
PLEASE DO NOT upgrade to this release if you need your game working and it uses any of the physics functions, as they're nearly all broken here.
Just pushing up so I can share it with someone.
2014-01-20 20:14:34 +00:00
photonstorm
651737fdd0
More physics tweaks.
2014-01-15 14:40:24 +00:00
Richard Davey
d8bf13eaaa
Merge pull request #309 from jcd-as/dev1
...
fix sprite vs sprite overlap check
2014-01-14 14:35:06 -08:00
photonstorm
bd66be1804
Updated Tilemap classes and further tests.
2014-01-14 22:34:41 +00:00
jcs
01a314018d
fix sprite vs sprite overlap check
2014-01-14 13:51:55 -08:00
photonstorm
32f5a2fa36
More examples updates. Fixed Starstruck tilemap code, removed un-needed ArcadePhysics methods and rebuilt the js files for testing.
2014-01-14 03:33:03 +00:00
photonstorm
011d2d8e05
The way the collision process callback works has changed significantly and now works as originally intended.
...
The World level quadtree is no longer created, they are now built and ripped down each time you collide a Group, this helps collision accuracy.
Bodies are no longer added to a world quadtree, so have had all of their quadtree properties removed such as skipQuadtree, quadTreeIndex, etc.
QuadTree.populate - you can pass it a Group and it'll automatically insert all of the children ready for inspection.
Removed ArcadePhysics binding to the QuadTree, so it can now be used independantly of the physics system.
2014-01-14 02:43:09 +00:00
photonstorm
bd9898db7e
New merged separate function that now uses processCallback the way it was always meant to be used.
2014-01-14 01:18:46 +00:00
photonstorm
e7c2b6ae9c
Fixed nearly all of the tilemap examples to use the new tilemap system.
2014-01-14 00:31:58 +00:00
photonstorm
c6fa2cb7b6
Added the new Timer, TimerEvent and Time methods to the TypeScript definitions files.
2014-01-13 14:18:15 +00:00
photonstorm
67e2caafbc
Added new Contributors guide.
2014-01-08 11:21:48 +00:00
photonstorm
c3183dcea9
Angular Physics re-implemented, most tests now working as expected.
2014-01-03 04:50:31 +00:00
Richard Davey
f7329e0661
Further physics modifications
2014-01-03 02:24:06 +00:00
photonstorm
5526a7322b
Warning: This version has a new ArcadePhysics handler in it. Don't upgrade if you need this for live game code, wait until we go to master. Otherwise, this commit contains lots of new physics demos and a new updateMotion and Body class to try and fix, once and for all, the physics issues with applied forces.
2014-01-02 23:28:22 +00:00
photonstorm
ce4cf531d4
Added class constructors, fixed Stripshader, added relative Tween example and updated Tween source.
2013-12-30 16:54:00 +00:00
Richard Davey
2c8077835c
Merge pull request #251 from cocoademon/physics_self_collide_fix
...
Don’t test self-collisions
2013-12-26 15:10:28 -08:00
photonstorm
dd7ae12271
ArcadePhysics.overlap and collide now recognise TileSprites in the collision checks.
2013-12-17 16:48:03 +00:00
Richard Davey
a0961f27df
Merge pull request #266 from cocoademon/physics_instability_fix
...
Physics instability fix. I'm merging this in so I can test it against the updates here.
2013-12-17 04:36:38 -08:00
photonstorm
896e9af9f5
TilemapLayers now render tiles correctly, with our without debugging overlay. Collision working well across single and index ranges.
2013-12-17 05:07:00 +00:00
Cameron Foale
b8dbb5d125
Take dt into account for gravity calculations
2013-12-17 14:38:44 +11:00
Cameron Foale
388e42c80a
Remove invalid multiply by 60 in Phaser.ArcadePhysics.updateMotion
2013-12-17 13:45:15 +11:00
photonstorm
da5d8c9272
Updated p2.js to latest build.
2013-12-11 03:20:33 +00:00
Cameron Foale
56389fcaf4
Fix riding on platforms
2013-12-11 10:25:57 +11:00
photonstorm
886618c056
Tilemap collision fixed, regardless of rotation, number of overlapping tiles and speed (to a point anyway). Maps also don't crash if they are smaller than the render area. Layers can be positioned successfully anywhere in camera but collision isn't yet offset for this.
2013-12-06 04:34:27 +00:00
photonstorm
ca3c71e8f5
Added max overlap clamp.
2013-12-06 02:44:06 +00:00
photonstorm
8e289e6b7c
Mostly working, just need to apply a max overlap to avoid tunneling, although a ray would be better.
2013-12-06 02:34:28 +00:00
photonstorm
1f513a333e
Fixed an issue where passing null as the Group parent wouldn't set it to game.world as it should have (thanks tito100).
...
Continued work on the tilemap collision - again, please don't use this version if you need working tilemaps.
2013-12-06 01:07:25 +00:00
photonstorm
ea3802a556
Lots of new tilemap code in here. If your game relies on tilemaps then please don't update to this commit unless you want to help debugging!
2013-12-05 18:12:16 +00:00
Cameron Foale
b48669dded
Don’t test self-collisions
2013-12-05 16:26:03 +11:00
photonstorm
a9a46bfbbf
Lots of documentation updates and new Loader examples.
2013-11-27 16:33:49 +00:00
Josh Shepard (jcs)
f4688241d2
update the collision hulls in sprite->sprite separations (in addition to sprite->tile separations)
2013-11-25 20:58:39 -08:00
photonstorm
299115ca5d
The entire Phaser library has been updated to match the new JSHint configuration.
2013-11-25 04:40:04 +00:00
photonstorm
13a2cc2feb
Updating all files to adhere to the JSHint settings and fixing lots of documentation errors on the way.
2013-11-25 03:13:04 +00:00
photonstorm
38bd00b4ed
ArcadePhysics.separateTile wasn't returning the value, so the custom process callback wasn't getting called (thanks flameiguana)
2013-11-16 13:47:12 +00:00
photonstorm
1eca16a948
ArcadePhysics.updateMotion applies the dt to the velocity calculations as well as position now (thanks jcs)
2013-11-05 16:14:24 +00:00
photonstorm
3c164b466c
* Updated: event.preventDefault() has been added to all Mouse event handlers.
...
* Updated: Sprite.deltaX/Y removed due to non-use. prevX/Y values moved to Sprite._cache.prevX/Y.
* Updated: Due to missing extends parameter the Sprite prototype was picking up functions from classes it never meant to (Button, TilemapLayer), now fully isolated.
2013-11-01 02:07:21 +00:00
photonstorm
6f93a2ec94
Multiple Anims update, Tilemap fixes and some new examples.
2013-10-31 15:45:19 +00:00
photonstorm
a814cc26cc
* Fixed issue 135 - Added typeof checks into most ArcadePhysics functions to avoid errors with zero values.
...
* Fixed issue 136 - distanceTo using worldX/Y instead of x/y.
2013-10-28 10:17:36 +00:00
photonstorm
6994e4be5e
Merge branch 'dev'
2013-10-25 18:50:14 +01:00
photonstorm
65d2bf557b
Updated docs and more tidying up.
2013-10-25 17:30:37 +01:00
photonstorm
9f9e6a2a57
Lots of doc updates!
2013-10-25 16:54:40 +01:00
photonstorm
4a51ac4671
Updated README and sorting out folder case issue.
2013-10-23 13:30:23 +01:00