Package com.threerings.media.util

Examples of com.threerings.media.util.LineSegmentPath


     * assigned.
     */
    protected boolean createPath (CharacterSprite s, int x, int y)
    {
        // get the path from here to there
        LineSegmentPath path = (LineSegmentPath)getPath(s, x, y, false);
        if (path == null) {
            s.cancelMove();
            return false;
        }

        // start the sprite moving along the path
        path.setVelocity(100f/1000f);
        s.move(path);
        return true;
    }
View Full Code Here

TOP

Related Classes of com.threerings.media.util.LineSegmentPath

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.