aboutsummaryrefslogtreecommitdiffstats
path: root/ardor3d-examples
diff options
context:
space:
mode:
authormallanmba <[email protected]>2017-04-19 15:18:52 -0500
committerJoshua Slack <[email protected]>2017-04-19 15:18:52 -0500
commit8ea0c83909327832f6ec575b752153b5ed6366fb (patch)
tree46c5db3f40fab79415943e9a94997c4f965e75df /ardor3d-examples
parentd07dfa20670807a588bfa0f643d88e8b8183d118 (diff)
Contributions from mallanmba regarding improvements and fixes to the Ardor3D interact system.
Diffstat (limited to 'ardor3d-examples')
-rw-r--r--ardor3d-examples/src/main/java/com/ardor3d/example/interact/InteractExample.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/ardor3d-examples/src/main/java/com/ardor3d/example/interact/InteractExample.java b/ardor3d-examples/src/main/java/com/ardor3d/example/interact/InteractExample.java
index b9fcb60..0fcbf1e 100644
--- a/ardor3d-examples/src/main/java/com/ardor3d/example/interact/InteractExample.java
+++ b/ardor3d-examples/src/main/java/com/ardor3d/example/interact/InteractExample.java
@@ -18,6 +18,7 @@ import com.ardor3d.extension.interact.InteractManager;
import com.ardor3d.extension.interact.filter.AllowScaleFilter;
import com.ardor3d.extension.interact.filter.MinMaxScaleFilter;
import com.ardor3d.extension.interact.filter.PlaneBoundaryFilter;
+import com.ardor3d.extension.interact.widget.BasicFilterList;
import com.ardor3d.extension.interact.widget.InteractMatrix;
import com.ardor3d.extension.interact.widget.MoveWidget;
import com.ardor3d.extension.interact.widget.RotateWidget;
@@ -160,16 +161,18 @@ public class InteractExample extends ExampleBase {
manager = new InteractManager();
manager.setupInput(_canvas, _physicalLayer, _logicalLayer);
+ final BasicFilterList filterList = new BasicFilterList();
+
// add some widgets.
- rotateWidget = new RotateWidget().withXAxis().withYAxis().withZAxis();
+ rotateWidget = new RotateWidget(filterList).withXAxis().withYAxis().withZAxis();
rotateWidget.setTexture((Texture2D) TextureManager.load("images/tick.png",
Texture.MinificationFilter.Trilinear, true));
manager.addWidget(rotateWidget);
- scaleWidget = new SimpleScaleWidget().withArrow(Vector3.UNIT_Y);
+ scaleWidget = new SimpleScaleWidget(filterList).withArrow(Vector3.UNIT_Y);
manager.addWidget(scaleWidget);
- moveWidget = new MoveWidget().withXAxis().withYAxis().withZAxis();
+ moveWidget = new MoveWidget(filterList).withXAxis().withYAxis().withZAxis();
manager.addWidget(moveWidget);
// set the default as current