Examples of fromAngleNormalAxis()


Examples of com.ardor3d.math.Matrix3.fromAngleNormalAxis()

            private final Vector3 axis = new Vector3(1, 1, 0.5f).normalizeLocal();

            public void update(final double time, final Box caller) {
                angle += time * 50;
                angle %= 360;
                rotate.fromAngleNormalAxis(angle * MathUtils.DEG_TO_RAD, axis);
                caller.setRotation(rotate);
            }
        });
        // Add a texture to the box.
        final TextureState ts = new TextureState();
View Full Code Here

Examples of com.ardor3d.math.Matrix3.fromAngleNormalAxis()

                _angle = _angle + (timer.getTimePerFrame() * 25);
                if (_angle > 180) {
                    _angle = -180;
                }

                _rotate.fromAngleNormalAxis(_angle * MathUtils.DEG_TO_RAD, _axis);
                _box.setRotation(_rotate);
            }
        });

        // Add our awt based image loader.
View Full Code Here

Examples of com.ardor3d.math.Matrix3.fromAngleNormalAxis()

                _angle = _angle + (_timer.getTimePerFrame() * 25);
                if (_angle > 180) {
                    _angle = -180;
                }

                _rotate.fromAngleNormalAxis(_angle * MathUtils.DEG_TO_RAD, _axis);
                _box.setRotation(_rotate);
            }
        });

        // Add our awt based image loader.
View Full Code Here

Examples of com.ardor3d.math.Matrix3.fromAngleNormalAxis()

                _angle = _angle + (_timer.getTimePerFrame() * 25);
                if (_angle > 180) {
                    _angle = -180;
                }

                _rotate.fromAngleNormalAxis(_angle * MathUtils.DEG_TO_RAD, _axis);
                _box.setRotation(_rotate);
            }
        });

        // Add our awt based image loader.
View Full Code Here

Examples of com.ardor3d.math.Matrix3.fromAngleNormalAxis()

                _angle = _angle + (_timer.getTimePerFrame() * 25);
                if (_angle > 180) {
                    _angle = -180;
                }

                _rotate.fromAngleNormalAxis(_angle * MathUtils.DEG_TO_RAD, _axis);
                sphere.setRotation(_rotate);
            }
        });
        _root.attachChild(sphere);

View Full Code Here

Examples of com.ardor3d.math.Matrix3.fromAngleNormalAxis()

                _angle = _angle + (_timer.getTimePerFrame() * 25);
                if (_angle > 180) {
                    _angle = -180;
                }

                _rotate.fromAngleNormalAxis(_angle * MathUtils.DEG_TO_RAD, _axis);
                box.setRotation(_rotate);
            }
        });

        // Create a texture from the Ardor3D logo.
View Full Code Here

Examples of com.ardor3d.math.Matrix3.fromAngleNormalAxis()

            public void update(final double time, final Node caller) {
                final long t = System.currentTimeMillis();
                final double s = Math.cos(t * Math.PI / 10000.0);
                final double y = 60 + s * 65;
                caller.setTranslation(0.5, y, 0);
                rot.fromAngleNormalAxis(-(t / 1000.0) % (2 * Math.PI), Vector3.UNIT_Z);
                caller.setRotation(rot);
            }
        };
        return nodeMover;
    }
View Full Code Here

Examples of com.ardor3d.math.Matrix3.fromAngleNormalAxis()

            private final Vector3 axis = new Vector3(1, 1, 0.5f).normalizeLocal();

            public void update(final double time, final Box caller) {
                angle += time * 50;
                angle %= 360;
                rotate.fromAngleNormalAxis(angle * MathUtils.DEG_TO_RAD, axis);
                caller.setRotation(rotate);
            }
        });
        // Add a texture to the box.
        final TextureState ts = new TextureState();
View Full Code Here

Examples of com.ardor3d.math.Matrix3.fromAngleNormalAxis()

        frame.setLocationRelativeTo(_canvas.getCanvasRenderer().getCamera());
        frame.setName("sample");

        final Matrix3 rotate = new Matrix3();
        final Vector3 axis = new Vector3(0, 0, 1).normalizeLocal();
        rotate.fromAngleNormalAxis(45 * MathUtils.DEG_TO_RAD, axis);
        frame.setRotation(rotate);

        hud = new UIHud();
        hud.add(frame);
        hud.setupInput(_canvas, _physicalLayer, _logicalLayer);
View Full Code Here

Examples of com.ardor3d.math.Matrix3.fromAngleNormalAxis()

            double angle = 0;

            public void update(final double time, final UICheckBox caller) {
                angle += time * 10;
                angle %= 360;
                rotate.fromAngleNormalAxis(angle * MathUtils.DEG_TO_RAD, axis);
                caller.setRotation(rotate);
                caller.fireComponentDirty();
                panel.layout();
            }
        });
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.