Pocket Putt Islands
README.md
FlickShot
Drag-and-release / slingshot shot controls on one physics body: the player who controls the body presses on or near it (touch or mouse), pulls and releases (or aims with a gamepad's left stick, holds A / RT to charge, B cancels); sliding back onto the ball cancels. Fires onShot { direction, power, curvedPower, impulse, speed, device }, onAimStart and onCancel, and pushes the body with Physics.applyImpulse while applyImpulse is on. Put it on an entity with a dynamic Physics body and a collider. Fields: preset, aimStyle, powerDisplay, inputMode, look, grab, maxImpulse, maxSpeed, loft, canShoot, player, applyImpulse, waitForRest, showOthersAim, showPercent, radius, aimScale, demo, demoFires. Methods: configure, settings, isAiming, shoot, cancel, visualCount. Only the peer that owns the body (or the named player) aims and applies the shot; other peers see a faint synced aim. Code reaches it through flickShot.api.