Report as inappropriate.
Click on empty space to add more flies.
This is a reusable actor class - CircularMover, that I will use in my DominoFall scenario,
which might be useful for your scenario.
This CircularMover class is adapted from SmoothMover class ver2.0
from Michael Kolling's Marbles scenario.
This CircularMover class is using Poul Henriksen & Michael Kolling's Vector class ver2.0
How to use:
(see the source code for more detail)
Create an actor as a subclass of (extends) CircularMover.
Set the radius of the circular path - setCR(double CIR_RAD).
Calculate the center of point of the circular path - calcCP().
Set the circular movement direction (clockwise/counterclockwise) - setCDir(boolean cWise).
Set the actor initial rotation - setRotation(int iRot).
Call moveCir() method from the actor act() method.
Set acceleration/deceleration - accelerate(double DECEL).
Apply a linear force - addForce(Vector vForce).
Start moving the actor - setMoving(boolean true).
9906 views / 19 in the last 7 days
1 vote | 0 in the last 7 days
This scenario is a member of: Reusable actors & support classes
Want to leave a comment? You must first log in.
2009/7/5
2009/8/10
2009/8/10
2009/8/10
2009/8/10