Package org.jdesktop.wonderland.modules.coneofsilence.common

Examples of org.jdesktop.wonderland.modules.coneofsilence.common.ConeOfSilenceCellServerState


     */
    @Override
    public void setServerState(CellServerState cellServerState) {
        super.setServerState(cellServerState);

  ConeOfSilenceCellServerState coneOfSilenceCellServerState = (ConeOfSilenceCellServerState) cellServerState;

  setLocalBounds(new BoundingSphere(4.5f, new Vector3f()));
    }
View Full Code Here


     */
    @Override
    public CellServerState getServerState(CellServerState cellServerState) {
        /* Create a new BasicCellState and populate its members */
        if (cellServerState == null) {
            cellServerState = new ConeOfSilenceCellServerState();
        }
        return super.getServerState(cellServerState);
    }
View Full Code Here

    }

    public <T extends CellServerState> T getDefaultCellServerState(
            Properties props) {
        // Create a setup with some default values
        ConeOfSilenceCellServerState cellServerState =
                new ConeOfSilenceCellServerState();

  cellServerState.setName("ConeOfSilence");

        // Give the hint for the bounding volume for initial Cell placement
        BoundingBox box = new BoundingBox(new Vector3f(), 2f, 0f, 2f);
     
  BoundingVolumeHint hint = new BoundingVolumeHint(true, box);
  cellServerState.setBoundingVolumeHint(hint);

        return (T) cellServerState;
    }
View Full Code Here

TOP

Related Classes of org.jdesktop.wonderland.modules.coneofsilence.common.ConeOfSilenceCellServerState

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.