package NET.worlds.scape; import NET.worlds.console.Console; class YawWidget extends WidgetButton { public YawWidget(ToolBar toolbar) { super(toolbar, "yaw.gif", Console.message("Yaw")); } @Override public String drag(boolean initialDrag, float deltax, float deltay) { if (Math.abs(deltay) > Math.abs(deltax)) { deltax = 0.0F; } Transform t = Transform.make(); this.applyWorldTransform(initialDrag, t.spin(this.getWorldAxis(0, 0, 1), deltax)); t.recycle(); return "Yaw"; } }