3dstreet icon indicating copy to clipboard operation
3dstreet copied to clipboard

Add movement controls including "snap turn"

Open kfarr opened this issue 5 years ago β€’ 3 comments

From Maximus on A-Frame Slack:

No snap turn made it quite hard to navigate. But i see the hands and can teleport :+1:

I think this means:

  • once positional stick crosses 50% thresh-hold in right or left direction, then add or subtract 45 degrees from current camera rig rotation with a rate limiter of every 1 second if held down

kfarr avatar Apr 20 '20 05:04 kfarr

2 possible movement controls components to add:

  • Easier but basic features: https://github.com/donmccurdy/aframe-extras/tree/master/src/controls#usage
  • Harder but more fully featured including snap turn: https://github.com/mozilla/hubs/blob/5ccfdcffe9dde9acf5b30731c9711279cb51fc4b/src/systems/character-controller-system.js#L225

kfarr avatar May 01 '20 04:05 kfarr

Check it out, ready to go example! https://glitch.com/edit/#!/snapturn?path=index.html%3A1%3A0

kfarr avatar May 11 '20 22:05 kfarr

New repo, check this out: https://jure.github.io/aframe-blink-controls/

kfarr avatar Jan 05 '21 21:01 kfarr

boom! https://github.com/3DStreet/3dstreet/commit/8c9081887c12a5381c04b947e998915a815bdaf3

kfarr avatar Oct 14 '23 06:10 kfarr