- Home /
Swimming with Rigidbody
I want to implement swimming system like in The Witcher 3:
slow down when character steps in water
at certain depth start to swim along the water surface
when press button start diving mode
How should I setup character with root motion and rigidbody? Now I have character with rigidbody and cylinder collider. For water I use trigger box collider. I think to make raycasts in onUpdate to get depth. But what should I do to make character swim along water surface? I've seen people that say to add rigidbody constraints or disable rigidbody at all, is there any better approach?
Your answer
Follow this Question
Related Questions
Character Controller Component, Gravity/inertia, and Root Motion 0 Answers
kingdom hearts combat help 0 Answers
rigidbody jumping and moving with constant speed without acceleration (with video ) 2 Answers
Best way to do smooth object movement and obstacle detection+animation reset ? 0 Answers
Physics colliders don't follow animation 0 Answers