blob: 489c88b3f5c1a3dcd10addd2725f9c2226dc6439 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
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";
}
}
|