photonstorm
335684ac57
Removed width/height parameters from addParticle, not needed.
2014-02-18 12:32:26 +00:00
photonstorm
63145d7735
New labs demo. Added moveForward and moveBackward to Body.
2014-02-18 04:49:03 +00:00
photonstorm
5d5c64d22f
Tilemap.createCollisionObjects will parse Tiled data for objectgroups and convert polyline instances into physics objects you can collide with in the world.
...
After defining tiles that collide on a Tilemap, you need to call Tilemap.generateCollisionData(layer) to populate the physics world with the data required.
Debug.renderPhysicsBody updated to take camera location and body rotation into account.
Body movement functions put back to velocity :)
Updated to latest dev version of pixi and latest p2.js
Updated docs
2014-02-18 03:01:51 +00:00
photonstorm
cad14848e8
Removed input handler from Graphics as it's just meant to be used as a texture really, if you need input events you can apply Graphics to a Sprite.
...
You can now create a Physics Body directly via game.physics.createBody(), and Body has been updated so it's no longer always bound to a Sprite.
Debug.renderPhysicsBody now works with Rectangles, Lines and multiple Convex shapes.
Starting to get the Tiled polyline parsing working nicely. Not too far off a complete tilemap collision.
2014-02-17 17:54:10 +00:00
photonstorm
78bf874888
Fresh build. Added pre/post update hooks to Graphics.
2014-02-17 11:27:31 +00:00
photonstorm
e5e643b103
fixedToCamera now works across all display objects. When enabled it will fix at its current x/y coordinate, but can be changed via cameraOffset.
...
fixedToCamrea now works for Groups as well :) You can fix a Group to the camera and it will influence its children.
Also fixed the issue with World.preUpdate/postUpdate not being called and various small documentation issues.
2014-02-15 01:27:42 +00:00
photonstorm
e5a4620b87
Loader.physics now lets you load Lime + Corona JSON Physics data, which can be used with Body.loadPolygon and Body.loadData.
...
Cache.addPhysicsData and Cache.getPhysicsData allow you to store parsed JSON physics data in the cache, for sharing between Bodies.
2014-02-14 23:51:49 +00:00
photonstorm
1097a699c3
Fixed anchor issue with Sprite.body.
2014-02-14 18:06:00 +00:00
photonstorm
bdb8908fee
Groups now update their children across preUpdate, update and postUpdate.
...
Sprite.exists = false removes Body from world.
2014-02-13 12:26:39 +00:00
photonstorm
312ec462bc
Sprite.exists now toggles the Body as well. Sprite.exists = false will remove an active Body from the World.
2014-02-13 09:55:46 +00:00
photonstorm
f6113ac6c4
Physics World events added.
...
Group has new 'addToWorld' parameter, which fulfills the same function as the old useStage.
Stage now extends PIXI.Stage rather than owns one.
2014-02-12 19:45:09 +00:00
photonstorm
424d1126bc
Fixed updateTransform and added Body shape methods.
2014-02-12 14:50:32 +00:00
photonstorm
c6cc2c9d71
Updated p2.js to latest build. Checked tests. Added Debug draw (needs rotation support).
2014-02-12 05:34:31 +00:00
photonstorm
2c100754bb
Body.setPolygon converted and working, along with some other p2 Body methods hoisted up.
2014-02-12 03:22:49 +00:00
photonstorm
5b64b01068
New 'thrust' demo. Added Body.moveLeft, moveRight, moveUp, moveDown, rotateLeft, rotateRight and thrust methods. Also hooked up force and created an asteroids style example.
2014-02-11 01:52:10 +00:00
photonstorm
1184d8bd76
PointProxy added to allow for easy setting of force and velocity. More p2 tests done. World update done.
2014-02-10 22:54:56 +00:00
photonstorm
2de934756c
Body property updates. Still working out best way to handle velocity assignment.
2014-02-10 19:33:27 +00:00
photonstorm
47e23096bd
Integrating p2.js.
2014-02-10 16:01:30 +00:00