Skip to content

Conversation

@schuellerf
Copy link

@schuellerf schuellerf commented Jan 6, 2025

Implements a "bike" or "vehicle" mode.
Default speed resembles more a bike.
When holding 'shift' the speed is more a car.

Sticks the camera at height 2 from the ground.

Could solve #64

Please note that I'm new to react and the streets-gl code, I hope the code is somewhat usable!

@StrandedKitty
Copy link
Owner

  • Pressing B while using the search field activates bike mode;
  • when I exit the bike mode by either pressing B again or Escape, the camera gets stuck in a strange state.

Implements a "bike" or "vehicle" mode.
Default speed resembles more a bike, when holding
'shift' the speed is more a car.

Sticks the camera at height 2 from the ground.
@schuellerf
Copy link
Author

schuellerf commented Jan 18, 2025

@StrandedKitty
please check now.

I don't really like to hand over "this" (ControlsSystem) to FreeControlsNavigator and GroundControlsNavigator but I didn't find a better solution :-/

--

The camera jumps back when pressing TAB twice but that was there before :-/

@schuellerf
Copy link
Author

I Just tested a little bit more - when in FreeControls mode and pressing ESC the mouse looses the pointer lock but we are still in FreeControls mode somehow - is this the intended behavior?
Maybe that was the strange state you ment?
I can also implement when loosing pointerLock (in FreeControls mode) we'll switch to GroundControl mode - if that's ok

(although I might do this in a separate PR - that's actually not related to bike mode)

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