By mjrb4 - uploaded on 2009-2-15 1206 views (49 in the last 7 days)
Tags: demo with-source rotation
This code is a demo for the rotator class that enables actors to rotate around a specific point on screen. In this demo, the robot rotates around a ball that can be dragged anywhere.
Source code is avilable, along with a fairly detailed commentary of the maths behind the positioning, so if you're interested in how it's done you should be able to follow - nothing hideously complicated though you do need to use the sine rule.
I've felt the need for a method like this in a few scenarios so if others have as well, hope this helps.
If you just want the Rotator.java file, visit the web site link.
Visit the web page for this scenario.
Open the scenario in Greenfoot.
Download the source for this scenario.
This scenario is a member of the following collections: Reusable actors & support classes
Report this scenario as broken or inappropriate.
The Greenfoot Network: Greenfoot.org Greenfoot Gallery Greenfoot-Discuss
A new version of this scenario was uploaded on Tue Feb 17 00:36:03 UTC 2009
If you want to leave a comment on this scenario, you must first log in.