Adding drive mode with physics simulator for street view option#204
Open
jeremybrachle wants to merge 1 commit into
Open
Adding drive mode with physics simulator for street view option#204jeremybrachle wants to merge 1 commit into
jeremybrachle wants to merge 1 commit into
Conversation
Author
|
Demo video: https://www.youtube.com/watch?v=GfXsCc-T008 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Hi @StrandedKitty ! I'm just opening this PR to gauge interest in a new feature and get feedback on direction in case you'd like to pull in this open-source contribution. I'll be changing direction soon for my long term project's vision but I wanted to split this part out as an additive feature that you could bring into your project if you find value to it. Just let me know if you have any questions! This is my first open-source project I've forked so all feedback is welcome 😅
Background
These code changes provide a new opt-in "drive mode" that lets you explore any location currently in the Streets GL map at street level by driving a car instead of only orbiting from above. Press the
Gkey to drop into a car at the current location and drive around with WASD; press again to return to the normal camera. It reuses the existing terrain-height API and follows the existingControlsNavigatorpattern, so it's additive — the default experience is unchanged unless you opt in.Current feature set:
DriveControlsNavigator(newNavigationMode.Drive) with analog WASD input anda low chase camera.
body leans/bounces over slopes).
Carrenderable + small GBuffer material/shaders; a procedural car plus optionalglTF car models.
Notes:
What I'd actually propose upstream:
If you're interested in this feature in your branch, I'll create a focused
feature/drive-modebranch offdevwith just the minimal, license-clean core, gated so the default UX is untouched:DriveControlsNavigator+NavigationMode.Drive+ theGtoggle(https://poly.pizza/m/1mkmFkAz5v), so there's no attribution burden on you.
CarSystem-style hook)Questions
CarSystem/ vehicle render path should live?How to run:
Screenshots (tested in San Francisco!)