cryptovoxels / issues

🐞 Bugs and issues to be resolved on cryptovoxels
5 stars 1 forks source link

Third person Camera #80

Closed bnolan closed 4 years ago

bnolan commented 4 years ago

From nolt

Feature request for an option to go from first person to 3rd person so we can walk around Origin City and see our avatars+wearables.

Yeah would be cool for screenshots or videos recording aswell

bnolan commented 4 years ago

Probably want to add this to the existing desktop controls (src/controls/desktop/...). Either have a key combination to switch between first person and third person, or use the scroll wheel to zoom in to first person, then zoom out (and control follow distance) using scroll wheel.

May have to raycast behind the avatar to make sure the camera is not inside a wall? I haven't done this before so not sure what the best practises are.

Be great for making videos, and for looking at your avatar. You can probably load the avatar using src/avatar.ts, and then you'll need to trigger the animations while walking around, currently these are only done for other people avatars, but code should be amenable to animating for yourself.

bnolan commented 4 years ago

Done!