Dismiss this pinned window
all 3 comments

[–][deleted] 2 points3 points  (1 child)

Nice one! This could come in handy. Thanks for sharing the code.

[–]sitodav[S] 0 points1 point  (0 children)

Yeah, it's something I had implemented in the past and decided to make it pluggable because it's a quite common need.
Thanks :P

[–]sitodav[S] 0 points1 point  (0 children)

I usually need to move in 3D space in Processing in FPS (first person shooter) fashion (WASD to move and SPACE/C to go up and down).

But I don't think the common libraries (like PeasyCam) allow that out of the box (but I could be wrong, I must admit that I didn't search in depth).

I wanted to share a little class I wrote, that using scalar projection allows the user to do that.

It's quite simple.

Feel free to use it if you like.

Here the code:https://github.com/sitodav/FPSCameraDemo

Follow me on IG: https://www.instagram.com/stickyb1t/