Physics
By default, objects are anchored in place. If we set this property to false, objects come to life!
Functions
object.push(x, y)
Give an object a push in the direction defined by x and y. This is the same as momentarily increasing the acceleration. If the object is anchored, it will become unanchored.
Properties
object.bounciness
A Number
between 0 and 1 defining how "bouncy" an
object is.
object.velocity.x
A Number
defining the object's velocity, or speed, along
the x-axis.
object.velocity.y
A Number
defining the object's velocity, or speed, along
the y-axis.
object.x
A Number
defining the object's x coordinate.
object.y
A Number
defining the object's y coordinate.
Events
collision
The collision event fired when two objects smash into each other.