06-19-2009, 10:59 PM
If this feature is not going to be available in Alice 3.0, those using Alice+Java may be able to emulate it programmatically.
You could take the references to instances of the objects making a group into an array/vector/list, and add an additional invisible object (like a box) whose center will act as the point of reference for group rotations. In Alice terms, this invisible object would be the value for the argument 'as seen by' when rotating each object.
A more elegant way could be to create a subclass of Model (or some other more appropriate class..Composite class?), for example; define methods to add and remove models from the group, and overwrite the appropriate existing/inherited methods. I have not looked at the source code so I am not sure which class could be the appropriate base class to inherit from --I just took a quick look at the classes in the org.alice.apis.moveandturn package.
|