I'm busy migrating to the new Unity Input System, which being event-based, has completely broken all my old code, but in the long-run has made my PlayerController loooooads more manageable and extendable. Just a case of redoing it all..... yay.
Not much to show at this stage, but the jist of it is here: There are two states you can hold an object in: Far and close.
"Far" is used for placing, rotating and moving objects, during which the player is unable to interact with anything else.
"Close" is used for smaller objects, which can be held "in one hand" close to the camera, effectively freeing up the other hand to interact with other items, and perhaps in the future pick up other small objects in the other hand.
You transition states by "zooming in" (scroll mouse wheel) the object close to you to hold close, and then "zoom out" to go back.
I know it seems a tad pointless right now, but it will make more sense as add more of the core game-play.
At the moment, it's missing all the smooth silky flash like bobbing and swaying objects as the player/camera moves. It's all a tad rigid for now.
The awful music was off of freesound.org, apologies to the creator for calling it awful, while simultaneously forgetting who to credit. Double burn. Maybe it's a blessing in this case. I literally just downloaded the first result for "music loop" or w/e it was.
0 Comments