Package controller
Class ReboundController2
java.lang.Object
controller.ObjectController
controller.ReboundController2
Controller to let Objects bounce from the outer level limits back and forth.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
inverts the x y direction speeds if the outer limits are reached.Methods inherited from class controller.ObjectController
applySpeedVector, getPlayground, getTimestep, getVX, getVY, getX, getY, setDummy, setObject, setPlayground, setVX, setVY, setX, setY
-
Constructor Details
-
ReboundController2
public ReboundController2()
-
-
Method Details
-
updateObject
public void updateObject()inverts the x y direction speeds if the outer limits are reached.- Specified by:
updateObject
in classObjectController
-