Hi,
I’m trying to detect what level of water my character is under and should they walk slowly in water or enter swim. How can I check if a character is in the box I generate with the component bounds?
Check if hip is under water
Hi,
I’m trying to detect what level of water my character is under and should they walk slowly in water or enter swim. How can I check if a character is in the box I generate with the component bounds?
Check if hip is under water
Have you tried “Is Point in Box” node ?
Never seen that node but it seems to do what I want for the most part
When inside the area however it seems to flicker between true and false, not sure why that is
Here’s what I’ve got
Do you have any water buyoancy physics enabled ?
That could be the cause: the object moves-in due to gravity and moves-out due to water opposing force.
nothing with buoyancy, just change from walk to the swim anims
Could be the Z of your mesh slightly changing with the anim too, leading to a constant switching between the two states
maybe, but I’m adding extra height to the bounds to check if character is on top or below then I’m checking if spine_03 is under the water planes height, if so trigger swim anims