Examples of PMatrix


Examples of imi.scene.PMatrix

                {                   
                    MovableAvatarComponent mac = ((MovableAvatarComponent) c.getComponent(MovableComponent.class));
                    mac.localMoveRequest(new CellTransform(rotation.getRotation(), translation), height, collision);

                    prevTrans = translation.clone();
                    prevRot = new PMatrix(rotation);
                    prevHeight = height;
                    prevCollision = collision;
                }
            };  
        };
View Full Code Here

Examples of imi.scene.PMatrix

        Node nameTagNode = getNameTagNode();

        // If there is an existing avatar character, then remove it, but store
        // away its position. Remove the name tag, turn off input and destroy
        // the avatar character.
        PMatrix currentLocation = null;
        if (avatarCharacter != null) {
            currentLocation = avatarCharacter.getModelInst().getTransform().getWorldMatrix(true);
            rootEntity.removeEntity(avatarCharacter);
            avatarCharacter.getJScene().getExternalKidsRoot().detachChild(nameTagNode);
            selectForInput(false);
View Full Code Here

Examples of imi.scene.PMatrix

     */
    private WlAvatarCharacter loadAvatarInternal(AvatarConfigInfo avatarConfigInfo)
            throws MalformedURLException, IOException {
       
        WlAvatarCharacter ret = null;
        PMatrix origin = new PMatrix();
        CellTransform transform = cell.getLocalTransform();
        origin.setTranslation(transform.getTranslation(null));
        origin.setRotation(transform.getRotation(null));

        // Create the character
        String avatarDetail = System.getProperty("avatar.detail", "high");
       
        // check if we support high-quality avatars
View Full Code Here

Examples of imi.scene.PMatrix

        @Override
        public void buildWorldMatrix(PMatrix parentWorld) {
            super.buildWorldMatrix(parentWorld);

            PMatrix xform = getWorldMatrix(false);

            modifyNode.setLocalTranslation(xform.getTranslation());
            modifyNode.setLocalRotation(xform.getRotationJME());
            modifyNode.setLocalScale(xform.getScaleVector());

            // force the geometric state to update immediately, so that
            // we aren't a frame behind the animation
            // ClientContextJME.getWorldManager().addToUpdateList(modifyNode);
            modifyNode.updateWorldVectors(true);
View Full Code Here

Examples of imi.scene.PMatrix

        }

        // Setup simple model, needs to actually have something to
        // play well with the system
        PScene simpleScene = new PScene(ClientContextJME.getWorldManager());
        simpleScene.addMeshInstance(new PPolygonMesh("PlaceholderMesh"), new PMatrix());
        attributes.setUseSimpleStaticModel(true, simpleScene);
        attributes.setBaseURL(baseURL);
       
        // Turn of animations for the simple avatar
        attributes.setAnimateBody(false);
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.