Class MovementPlanner


  • public final class MovementPlanner
    extends java.lang.Object
    Plans a cursor path from one point to another.

    Paths come from PhysicsMovementPlanner: velocity builds up, the heading steers toward the target with a speed-dependent turning radius, and the cursor slows down near the target. Points are produced at 125 Hz, a common mouse report rate.

    • Constructor Detail

      • MovementPlanner

        public MovementPlanner​(MouseProfile profile,
                               java.util.Random random)
      • MovementPlanner

        public MovementPlanner​(MouseProfile profile,
                               java.util.Random random,
                               boolean usePhysics)
    • Method Detail

      • isUsePhysics

        public boolean isUsePhysics()
      • setUsePhysics

        public void setUsePhysics​(boolean usePhysics)
      • plan

        public MousePath plan​(net.runelite.api.Point from,
                              net.runelite.api.Point to,
                              java.awt.Rectangle targetBounds,
                              int speedSetting)
      • plan

        public MousePath plan​(net.runelite.api.Point from,
                              net.runelite.api.Point to)
      • plan

        public MousePath plan​(net.runelite.api.Point from,
                              net.runelite.api.Point to,
                              int speedSetting)
      • planDrag

        public MousePath planDrag​(net.runelite.api.Point from,
                                  net.runelite.api.Point to,
                                  int speedSetting)
      • planBezier

        public MousePath planBezier​(net.runelite.api.Point from,
                                    net.runelite.api.Point to,
                                    java.awt.Rectangle targetBounds,
                                    int speedSetting)
      • clickHoldMs

        public int clickHoldMs()
      • dragPressHoldMs

        public int dragPressHoldMs()