void updateActivationRadius(float radius) { schedSphere.setCenter(zeroPoint); schedSphere.setRadius(radius); schedSphere.transform(getCurrentLocalToVworld(null)); }
/** * Set the ViewPlatform's activation radius */ void setActivationRadius(float activationRadius) { sphere.setRadius(activationRadius); if (source != null && source.isLive()) { repaint(); } // Notify behavior scheduler & RenderBin if (source.isLive()) { J3dMessage message = new J3dMessage(); message.type = J3dMessage.UPDATE_VIEWPLATFORM; message.threads = J3dThread.UPDATE_RENDER|J3dThread.UPDATE_BEHAVIOR; message.universe = universe; message.args[0] = this; message.args[1] = new Float(activationRadius); VirtualUniverse.mc.processMessage(message); } else { schedSphere.setRadius(activationRadius); } }
newBoundSphere.combine( newSphere ); } else { newBoundSphere.setRadius( newRadius ); newBoundSphere.setCenter( newCenter ); status = true;
bounds.setRadius(Double.POSITIVE_INFINITY);