WIP - Juicing
Hey all! I wanted to release a new dev build before the end of this month, but looks like it's gonna take another week or so for that to happen. In the meantime, let me share the progress I've made and an unforeseen challenge that made this a lot trickier than I thought.
I made some great progress on blueberry growth and the juicing machine. You can control how far the juicer squishes and even rotate or raise it to squish the character in different ways. But then I realized there was a problem. The blueberry growth worked fine when the character is stuck in one place, but when rolling around in the wider world, a big issue cropped up.
To preface, the softbody physics system does not support growing or shrinking a softbody. To get around this, I've been using a really sneaky hack. Instead of scaling the softbody, I scale the entire physics simulation, which is represented by an invisible object called the solver. The softbody lives inside the solver, which allows the solver to "solve" all the physics calculations needed to run the softbody. This mostly works, but it starts to break down if the softbody moves away from the solver.
You can see the issue here. If the softbody is far away from the solver, scaling the solver also pushes and pulls the softbody relative to their distance from each other. The farther away from the solver, the more the softbody gets pushed and pulled. To fix this, I detect if the softbody has moved away from the solver. Then I decouple the softbody from the solver, reposition the solver to the softbody's center, then recouple them. This results in a small twitch with the softbody (which you may have noticed from time to time) but it's typically hard to see because it happens so quick.
This has worked fine so far because the character only ever grows in short spurts when swallowing food or gulping from the tube. If the character is growing constantly while rolling around the map, (like with blueberry growth) the decoupling/recoupling has to happen almost constantly, which causes a lot of twitching.
But what if I moved the solver while it's being scaled to compensate for this push and pull effect? It took a while to get the math right, but in the end, it worked. Now I can scale the character fluidly regardless of distance from the solver, because the solver moves to compensate for any offset.
This is working great, but now I have to rework a lot of old code to use this improved scaling method. I still have a few more features to implement as well, including a slider for growth speed, options to enable/disable popping and custom colors for the juice and blueberry skin. Thanks for your patience while I figure these things out and I'll see you again soon!
Comments (26)
I have a super small request: would it be possible for the eating sounds to be made separate from the vocals? I love the eating sounds, but don't always love the other vocals, and I would love to be able to have my cake and eat it too.
I also think it would be cool if you added different sets of facial expressions, or even just one alternate set that's more pleased overall. It would make for more flexible scenarios, such as if I want my character to be outwardly enjoying the eating/gaining/inflation.
Can you please add some destroyable furniture
Yeah it's on my to do list
These juicing animations look sooo good. Personally I'd love the option to keep them in the flattened/pancaked shape
Probably a very silly question to ask, but what/is the visual indicator of someone starting to get "too full"
I'll be ramping up some creaking/straining sound effects and once the character is on the verge of popping, their body will start vibrating. The display in the juicing room will also warn that thay are at max capacity
Could there be an option to make the character burp and/or fart as a result of the squeezing?
Potentially. I'll see what I can do
With the addition of popping, will you be adding like, her getting nervous as she gets really full? I love her little emotes for other stuff, so I’m just curious lol
I'd like to do something like that. I'll see what I can do
I ment to ask this yesterday, but, will you be making the juicing room like an add on to the candy land? Like a tunnel you can roll through on the other end of the map? Also! In post-juicing, will a character obtain like a blue discoloration and get chubby, or like, just get reset to they're default save?
Yeah there will be a door that opens up in the candy factory when you are a blueberry. And probably just a reset for now at least
So exciting!
Do you have any ideas for gassy stuff? Like maybe a duration of how long you can burp or fart
I probably will at some point
this project is absolutely amazing and only getting better, do you have any plans to add air and water inflations to the game perhaps?
Most likely at some point
i would love a new weight class after blob or could you make it so that she just doesnt stop growing and encompasses everything
There's still some weird problems I need to figure out to make her bigger than the current max size, but I think it's possible
That is really cool! I love how you explained your process and how you are advancing a niche section of software development.
Thank you so for all your hard work and dedication. I truly appreciate you and your time spent. Can't wait to see all the new updates and features. Thank you. 💕
We are putting them in the hydraulic press 😔
This is a cool little behind the scenes! I’m sure everything put into these changes will be worth it in the long run
Awesome! The juicing looks so good! Super excited for popping to get added in too!
OML YESSSSS!!! this is fantastic! You have no idea how hyped I am for juicing and popping mechanics to be adapted to the sim.,.,., ty so much for creating this, I can hardly wait!!
