Esempio n. 1
0
 /** Shortcut to get the location of this GameObject from the Transform3D. */
 public Vector3D getLocation() {
   return polygonGroup.getTransform().getLocation();
 }
Esempio n. 2
0
 /** Gets this object's transform. */
 public MovingTransform3D getTransform() {
   return polygonGroup.getTransform();
 }
Esempio n. 3
0
 /**
  * If this GameObject is in the active state, this method updates it's PolygonGroup. Otherwise,
  * this method does nothing.
  */
 public void update(GameObject player, long elapsedTime) {
   if (isActive()) {
     polygonGroup.update(elapsedTime);
   }
 }