Backpack
hammy275 opened this issue ยท 7 comments
I expect this to be iterated on a lot, and have progress made both during and between versions.
Ideas so far:
- Backpack is "summonable" from a button. By default, the button should be mapped to an extraordinarily rarely used keyboard key so it doesn't conflict with other mods, but can simultaneously be easily bound to the radial menu.
- Backpack would effectively work like the chest immersive, but requiring left click/trigger to be held to take items out/put items in.
- Backpacks should hook into the immersive system. The position of the backpack along with the hitboxes of the strap should not be retrievable from
getPositions
/getHitboxes
, which should instead be reserved purely for the items themselves. - Taking inspiration from the effectively-scrapped physical inventory from Vivecraft, when summoned, the backpack is "glued" to controller 1's right-hand side. We'll need a config key that allows one to change which hand it's glued to for left-handed folks.
- Looks-wise, the backpack will probably look close to the bag from the effectively-scrapped physical inventory. We'll make the color of it brown for now, but long term, being able to customize the color would be fun
I'm not sure yet if I want to use AABB's for approximate hitboxes that would be much easier to implement or writing up a OBB system that would be much more accurate.
Might do the first then switch to the second later; not sure
Going to stick with AABBs, they actually aren't too far off even at the worst angles.
Dealing with roll for it is currently being a huge pain for me, so for now, I'm thinking of disabling everything related to roll so we can get Alpha 3 out the door.
A couple things:
- Going to scrap ever implementing anything related to roll. It's a massive pain, and using the backpack without roll, I can't tell the difference.
- Forgot to implement a lang entry for the ImmersiveMC key category, so I should add that.
- Need to redo the bag texture to not be stupid close to a solid color.
The backpack is in a very very MVP state (just barely at a point where if for some reason, I never worked on this mod again, I'd be happy with it) as of d8374ac . Finally can get Alpha 3 out the door. I'll leave this issue to open to track any future ideas.