third-person character animation
as a viewer exploring a scene, I would enjoy having a video game character that I can control to provide a sense of embodiment and scale, and a way to obviously interact with the scene
a few potential solutions:
- third person 8th wall example --> task to adapt to a-frame without 8th wall https://www.8thwall.com/8thwall/navigation-mesh/code/README.md (WIP / broken attempt to replicate 8th wall example with vanilla a-frame https://glitch.com/edit/#!/broken-aframe-robot?path=index.html%3A15%3A0)
- joystick example from vincent --> https://aframe-joystick-third-person.glitch.me/
- advanced character example: https://reliable-universal-hardware.glitch.me/ source https://glitch.com/edit/#!/reliable-universal-hardware from SéamusBoy and JosephChrzempiec on supermedium aframe discord
selection / characters to support:
- eventually, any of the 16 characters should be adaptable to third-person character control
- eventually, any of the rigged vehicles should be adaptable to third-person control (joystick remote control)
how to choose between different characters to control?
- v0 - no choice
- v1 - determined by component property picklist similar or identical to choosing from specific mixin category
- challenge of varying entity location within scene graph which may require reparenting entity to be controlled
- may help to have mixins of entities that are controllable to have a specific attribute / component set
collision / navmesh:
- ideally characters and vehicles cannot clip with buildings. could be implemented as a navmesh or even more basic bounding box check of large rectangle representing floor space of a block of buildings
joystick example from vincent --> https://aframe-joystick-third-person.glitch.me/
That's not me. This uses an adapted version of the old aframe-joystick component based on old nipplejs version I think. The nipple controls I did in aframe-extras master is different, based on latest nipplejs version and support the navmesh.
chase camera https://discourse.threejs.org/t/how-to-make-the-camera-rotate-around-a-moving-object-and-follow-the-object/37065/12