Loading... Check console for AR support.

Flick the ball towards the hole!

Strokes: 0
/* Dark color for hole */ SolvProb — Custom Website & App Engineering

WebXR AR/VR Golf Flick

Play a one-hole mini-golf challenge by flicking a physics-based ball toward the hole in AR, VR, or a desktop browser view.

What this tool does

This A-Frame game places a white golf ball on a green plane and uses the Ammo physics driver to simulate each shot. Drag or flick across the scene to apply direction and force; the game counts strokes and reports when the ball reaches the hole.

Who this is for

How to use this tool

  1. Open the page in a modern browser, then choose Enter AR or Enter VR when supported
  2. Aim the camera or desktop view toward the green and hole
  3. Press and drag across the scene in the direction you want the ball to travel
  4. Release to flick the ball; longer or faster gestures apply more force
  5. Watch the Strokes counter and continue until the ball enters the hole
  6. After the ball is sunk, flick again to reset it for another attempt

Inputs

Outputs

Example use cases

Similar SolvProb apps

Frequently asked questions

How is a stroke made?

Press and drag on the scene, then release. The game converts the gesture's direction and magnitude into a horizontal physics impulse and increments the stroke count.

Can I play without an AR or VR headset?

Yes. The scene can be viewed in a regular desktop or mobile browser with mouse or touch input. AR and VR are optional WebXR modes.

What happens when the ball reaches the hole?

The game stops the ball, displays the number of strokes, and lets you flick again to reset the ball for a new attempt.

Need a custom AR or browser game?

SolvProb builds tailored WebXR demos, interactive 3D tools, and browser games around your concept.

Talk to SolvProb →