Skip to content

Commit 000eae4

Browse files
committed
Axis added to the Collide Event
1 parent 15f60a7 commit 000eae4

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

v3/src/physics/impact/events/CollideEvent.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ var CollideEvent = new Class({
77

88
initialize:
99

10-
function CollideEvent (bodyA, bodyB)
10+
function CollideEvent (bodyA, bodyB, axis)
1111
{
1212
Event.call(this, 'COLLIDE_EVENT');
1313

@@ -22,6 +22,9 @@ var CollideEvent = new Class({
2222

2323
// The Game Object associated with bodyB (if any)
2424
this.gameObjectB = bodyB.gameObject;
25+
26+
// Either 'x' or 'y'
27+
this.axis = axis;
2528
}
2629

2730
});

0 commit comments

Comments
 (0)