PNode Notes

animateToPositionScaleRotation(double x, double y, double scale, double theta, long duration)

  • Use this to move a PNode object to a new location (set duration to 0 to make the move instantaneous).

getBounds()

  • The bounds of a PNode are returned as a PBounds, which can be broken into an origin ( PBounds.getOrigin() ) and a bounds size ( PBounds.getSize() ). As far as I know, the origin is always in local coordinates—i.e., (0, 0). —gw
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License