|
From: <tre...@us...> - 2007-10-06 03:11:40
|
Revision: 482
http://ogoglio.svn.sourceforge.net/ogoglio/?rev=482&view=rev
Author: trevorolio
Date: 2007-10-05 20:11:42 -0700 (Fri, 05 Oct 2007)
Log Message:
-----------
Added a spin behavior to the body editor so we can see all glorious sides of Mike and Alien Andrea.
Tweaked a sim debug message which was bothering me.
Modified Paths:
--------------
maven/trunk/ogoglio-body-editor-applet/src/main/java/com/ogoglio/bodyeditor/BodyEditorApplet.java
Modified: maven/trunk/ogoglio-body-editor-applet/src/main/java/com/ogoglio/bodyeditor/BodyEditorApplet.java
===================================================================
--- maven/trunk/ogoglio-body-editor-applet/src/main/java/com/ogoglio/bodyeditor/BodyEditorApplet.java 2007-10-05 02:59:47 UTC (rev 481)
+++ maven/trunk/ogoglio-body-editor-applet/src/main/java/com/ogoglio/bodyeditor/BodyEditorApplet.java 2007-10-06 03:11:42 UTC (rev 482)
@@ -72,6 +72,7 @@
import com.ogoglio.xml.AccountDocument;
import com.ogoglio.xml.BodyConfigurationDocument;
import com.ogoglio.xml.BodyDataDocument;
+import com.sun.j3d.utils.behaviors.mouse.MouseRotate;
public class BodyEditorApplet extends Applet {
@@ -197,6 +198,11 @@
Transform3D userTransform = new Transform3D();
userTransform.rotY(1);
userGroup.setTransform(userTransform);
+ MouseRotate behavior = new MouseRotate();
+ behavior.setFactor(0.05, 0);
+ behavior.setTransformGroup(userGroup);
+ userGroup.addChild(behavior);
+ behavior.setSchedulingBounds(bounds);
canvas.getView().setTransparencySortingPolicy(View.TRANSPARENCY_SORT_GEOMETRY);
canvas.getView().setSceneAntialiasingEnable(true);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|