3dstreet
3dstreet copied to clipboard
Add movement controls including "snap turn"
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
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
Check it out, ready to go example! https://glitch.com/edit/#!/snapturn?path=index.html%3A1%3A0
New repo, check this out: https://jure.github.io/aframe-blink-controls/
boom! https://github.com/3DStreet/3dstreet/commit/8c9081887c12a5381c04b947e998915a815bdaf3