Examples of PTransform


Examples of imi.scene.PTransform

                               
                                if (delayedMove != null) {
                                    delayedMove = null;
                                    logger.fine(cell.getCellID() + ": remove delayed move for: " + transform.toString());
                                }
                                avatarCharacter.getModelInst().setTransform(new PTransform(transform.getRotation(null), transform.getTranslation(null), new Vector3f(1, 1, 1)));
                            } else {
                                logger.fine(cell.getCellID() + ": delaying move: " + transform.toString());
                                // we tried to move before loading the avatar.
                                // record the new position to apply when we
                                // actually load
View Full Code Here

Examples of imi.scene.PTransform

        avatarCharacter.removeComponent(CollisionComponent.class);

        // Set the initial location of the avatar if there is one
        if (currentLocation != null && avatarCharacter.getModelInst() != null) {
            logger.fine(cell.getCellID() + " Using current location: " + currentLocation);
            avatarCharacter.getModelInst().setTransform(new PTransform(currentLocation));
        } else if (delayedMove != null && avatarCharacter.getModelInst() != null) {
            // there was no previous avatar, but there was a move that
            // happened while the avatar was null. Apply the move now
            logger.fine(cell.getCellID() + " using delayed move: " + delayedMove.toString());
            PTransform trans = new PTransform(delayedMove.getRotation(null),
                                              delayedMove.getTranslation(null),
                                              new Vector3f(1, 1, 1));
            avatarCharacter.getModelInst().setTransform(trans);
        }
View Full Code Here

Examples of imi.scene.PTransform

    public void triggerGoto(final Vector3f position, final Quaternion look) {

        if (avatarCharacter != null) {
            SceneWorker.addWorker(new WorkCommit() {
                public void commit() {
                    PTransform xform = new PTransform(look, position,
                                                      new Vector3f(1, 1, 1));
                    avatarCharacter.getModelInst().setTransform(xform);
                }
            });
        } else {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.