Package net.openosrs.api.input.motion
Class PhysicsMovementPlanner
- java.lang.Object
-
- net.openosrs.api.input.motion.PhysicsMovementPlanner
-
public final class PhysicsMovementPlanner extends java.lang.ObjectSimulates cursor motion step by step at 125 Hz.Each 8ms step updates speed and heading: speed rises toward a target magnitude, the heading turns toward the target by at most dTheta, and speed falls off exponentially inside the deceleration radius. A fixed spline through control points would produce the same shape for every movement; this does not.
-
-
Constructor Summary
Constructors Constructor Description PhysicsMovementPlanner(MouseProfile profile, java.util.Random random)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MousePathplan(net.runelite.api.Point from, net.runelite.api.Point to, java.awt.Rectangle targetBounds, int speedSetting)MousePathplanDrag(net.runelite.api.Point from, net.runelite.api.Point to, int speedSetting)
-
-
-
Constructor Detail
-
PhysicsMovementPlanner
public PhysicsMovementPlanner(MouseProfile profile, java.util.Random random)
-
-