Constructor
new BoundMethods()
All methods of this class are static.
Methods
(static) bounceOff(mover, boundObejct)
Bounces the mover off of the boundObject
Parameters:
Name | Type | Description |
---|---|---|
mover |
Mover | a Mover or Object with x y width height properties |
boundObejct |
Rectangle |
(static) boundTo(mover, boundObejct)
Bounds the mover to the boundObject
Parameters:
Name | Type | Description |
---|---|---|
mover |
Mover | a Mover or Object with x y width height properties |
boundObejct |
Rectangle |
(static) wrapAround(mover, boundObejct)
When the move reaches the end of the boundObject it wraps back to the start.
Parameters:
Name | Type | Description |
---|---|---|
mover |
Mover | a Mover or Object with x y width height properties |
boundObejct |
Rectangle |