Class Summary |
Approach |
Approach applies an acceleration which tries to push the object in the direction of
its target. |
Bounce |
This action performs collision response on two objects by moving them apart
and reflects their velocity. |
Explode |
This action gives the object a one-time velocity push in a random
direction. |
Gravity |
Applies a constant downwards acceleration to an object. |
Move |
This is the basic Move; actions from the physics package will have no effect
unless this behaviour is applied to objects. |
PhysicsAction |
Every Action in this package should be a descendant of this class. |
PhysicsFactory |
The factory of Physics behaviours. |
Push |
This action gives the object a one-time velocity push in a given
direction. |
Spin |
This action gives the object a one-time angular spin. |
StayInside |
StayInside tries to keep an object inside a Shape. |
StayInWindow |
Keep objects inside a window. |
Stop |
Stop an object from moving by setting its velocity and angular velocity to 0. |