Skip to content

Add the "3D car touch controls" example - #1134

Closed
4ian wants to merge 1 commit into
mainfrom
claude/dreamy-mendel-iw5mn6-touch-driving
Closed

4ian wants to merge 1 commit into
mainfrom
claude/dreamy-mendel-iw5mn6-touch-driving

Conversation

@4ian

@4ian 4ian commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

Two ways to drive a 3D car on a touchscreen, to try the new MultitouchDrivingControls extension of GDevelopApp/GDevelop-extensions#2379 side by side. The extension is included in the project.

floating joystick and pedals

It is made from the 3D racing starter (same track, car, laps and keyboard controls). Its speed joystick is replaced by pedals.

  1. Floating joystick + pedals (default):
    • The steering joystick appears where the left side of the screen is touched and follows the finger. It uses the existing "Show and start pressing" action with the "New touch on a screen side" condition.
    • The gas and brake pedals are on the right.
  2. Steering wheel + pedals: the wheel, turned with the finger, replaces the joystick.

Switch with the text at the top right, or the C key. The car keeps its "3D car multitouch mapper" behavior: the joystick or wheel moves the primary stick, and the pedals push the secondary stick up or down, so no event drives the car.

The pedals and the wheel are the Toybox ones of GDevelopApp/GDevelop-assets#769.

Gameplay tests

  • The two tests of the starter, with the keyboard: accelerating, and counting a lap.
  • The gas pedal drives the car forward: holding the pedal moves the car more than 100 px.
  • The floating joystick steers:
    • the joystick appears under the finger;
    • moving the finger turns the car while the gas pedal is held;
    • the joystick hides when the finger is lifted.
  • The steering wheel steers: after switching controls, turning the wheel turns the car.

All 5 pass with the GDevelop CLI.


Generated by Claude Code

@github-actions

Copy link
Copy Markdown
Contributor

Preview the game(s) changed or added in this Pull Request


This is an automatic message displaying links to the games in this PR - double check the JSON in case of doubt.

@4ian 4ian closed this Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants