Package com.threerings.miso.util

Examples of com.threerings.miso.util.MisoSceneMetrics


     * Returns an entering location for body somewhere at least minDistance tiles away from base.
     */
    protected SceneLocation computeEnteringLocation (BodyObject body, StageLocation base,
        int minDistance)
    {
        MisoSceneMetrics metrics = StageSceneUtil.getMetrics();
        StageLocation sloc = base.clone();
        int tx = MisoUtil.fullToTile(sloc.x), ty = MisoUtil.fullToTile(sloc.y);
        int oidx = sloc.orient/2;
        int lidx = (oidx+3)%4; // rotate to the left
        int ridx = (oidx+1)%4; // rotate to the right
View Full Code Here

TOP

Related Classes of com.threerings.miso.util.MisoSceneMetrics

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.