barsuift.simLife.j3d
Interface Mobile

All Superinterfaces:
Publisher
All Known Subinterfaces:
TreeLeaf3D

public interface Mobile
extends Publisher

A mobile is something you can move, using its transformGroup.

This interface extends Publisher so that moved objects can notify others when they reach certain points of interests, like colliding with another object, or when the movement stops for any reasons.


Method Summary
 javax.media.j3d.BranchGroup getBranchGroup()
          Gets the branch group of the mobile.
 javax.media.j3d.TransformGroup getTransformGroup()
          Gets the transform group of the mobile.
 
Methods inherited from interface barsuift.simLife.message.Publisher
addSubscriber, clearChanged, countSubscribers, deleteSubscriber, deleteSubscribers, hasChanged, notifySubscribers, notifySubscribers, setChanged
 

Method Detail

getTransformGroup

javax.media.j3d.TransformGroup getTransformGroup()
Gets the transform group of the mobile. This transform group is used to move the mobile.

Returns:
the mobile transform group

getBranchGroup

javax.media.j3d.BranchGroup getBranchGroup()
Gets the branch group of the mobile. This branch group contains the transform group, returned by getTransformGroup().

Returns:
the mobile branch group


Copyright © 2010. All Rights Reserved.