SamuKata
sgthale
sgthale

patreon


Continuing Bathing Part 4

I have begun to implement doors for bathing. There were some interesting changes I had to make to the way the game handles collisions.

For starters, the player's hands would always phase through the world. This is problematic for doors because that would allow the player to be able to phase through the door and unlock the other side. So from now on there will be a collision prevention check:

I personally like this change because it really grounds the player's hands into the world. The system also works on all sorts of curved surfaces.

With this collision prevention system in game, I was able to properly implement opening and closing doors. To push a door open, simply walk towards a door and the player's hands will do the rest:

However if the door is locked, the player will have to turn the doorknob to unlock it. This part is still wonky when not done in VR because using a mouse to swing open a door while opening or closing it is a bit akward. Here is me closing the door:

The player grabs the doorknob like a regular item and releases when he is done with the doorknob. For VR I will implement requiring the player to twist his hand so it's more realistic. Currently I am recording sounds for the door using my living room door.

The previous animations from the last dev post are almost entirely implemented. Shinobu will now bend over and react accordingly when the water is full and the player orders her to bathe:

Currently there are still some last small things I need to tend to regarding her rig. Going to humanoid rig type broke some of her eyeball animations.

The last part of her getting ready to bathe is making you get out of the bathroom. This is where she points to the door to gesture to you to get out. I'm almost done with this. There are lots of "what ifs" for this kind of behavior that need to be disposed of properly. For example, she needs to point to the door and look at the player at the same time. Therefore the animation she uses to point out is based on the bearing from her transform to the door like so:

(ignore her broken hand rotation its unfinished right now). She will use her IK logic to point exactly to the door no matter where she is standing at. Another exception is what if the player is in front of her and the door is behind her, I wouldn't want her arm to extend backwards because that would look broken and bad. So I'll think of something to address this. By next devpost she should be fully naked in the bathtub covered in bubbles, waiting for the player to help her wash her hair. Finally.

Stay tuned.

Continuing Bathing Part 4 Continuing Bathing Part 4

More Creators