How to Properly Create Physics Volume for Fluid using C++?
In this project, I would like to spawn a physics volume in a sea using C++, as I am manually modifying sea level in the code. The code below can spawn the physics level. However, it is not working correctly, as my character is supposed to swim whenever it overlaps with the Physics Volume. (IsSwimming from NavMovementComponent = false even after the character enters the physics volume, should be true instead).
Below is the Settings of the Physics Volume while playing. If I manually add the physics volume using the same settings below without using the C++ code, the character would swim properly.
Any suggestions to resolving the issue would be appreciated!
I've found a workaround - To manually create a PhysicsVolume in the UE Editor, set it to movable, and then set its location and scale.
Feel free to comment below if you've found a solution directly addressing to my problem, without manually creating a PhysicsVolume.
Follow this question
Once you sign in you will be able to subscribe for any updates here