swift502 / Sketchbook

3D playground built on three.js and cannon.js.

Home Page:https://jblaha.art/sketchbook/latest

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to first-person?

opened this issue · comments

How to do management from the first person

Hi!

Sorry for a late response. First person isn't currently on any of my TODO lists. I'm personally really interested in the third person mode and how that's done.

The simple way of doing it is probably to create a first person game mode, then appropriate first person character states and a character update override. But there would be no support for a view-model of a weapon for instance, so you're still very limited in what you can do...

The thing is, taking my current character class and turning it first person like this would mean you're throwing away 90% of the class' functionality. It might as well be easier and more elegant to start from scratch and create a new character class that does exactly what you need, and only borrow the raycasting bit from my class, and throw out all of my character model and animation management, which you won't need in first person.

Like I said I'm not planning to do it currently. But I guess if enough people wanted it I'd consider it. Sorry.

Thank you for being interested In sketchbook though. It's just a simple playground of mine, and can't do much now. I plan to start working on it in a few months again...

Thanks for the answer, I will continue to follow your wonderful project)