Devlog 6: Life is an open door
The latest improvement to FPS OS is that you can now unlock the OS! This is accomplished by entering your passcode into the door (by default 0000).
What took so long?
In order to get the door to open (and close), I had a lot of trial and error. The way the USDC scene file is imported means that it has offsets of the meshes that require a specific tree of groups.
In order to have physics objects in Jolt, the meshes need to be in world space. However, if the meshes are in world space they don’t have the offsets they need to move as a group around the origin points.
I tried putting a reverse offset and putting physics objects in local space but nothing worked.
Eventually, I decided to just have the base of the door in physics world space and then have the rest of the meshes in one local group that copies its rotation from the door.
Changes
- Fixed the player rotation being confined to physics
- Changed note to say “c0000” and not “0000” in case it wasn’t clear you have to reset after a mistake
- Added noclip
- Allowed the game to move the player for cutscenes
- Added a function to rotate physics objects around a pivot point
- Added a function to add debug points to visualise why the pivot points are wrong
Better mobile support coming soon
Try it out at cookistudios.com/fps-os.
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.