21-04-2021, 08:37 AM
(21-04-2021, 08:31 AM)gigass21 Wrote: I see thank you for the explanation, it's clear now, but because the dog movement is using NavMesh, so it's not moved by Rigidbody, that's why the rigidbody is kinematic. So can we combine it and limit the movement with Rope?
You can't have physics (non-kinematic rigidbody) on a NavMesh agent, as far as I know. An object can be either governed by navigation or physics, not both at once.
Howeve you could have a navmesh agent, and a non-kinematic rigidbody that follows it. That way the rigidbody can be affected by forces: one force pulls it towards the navmesh agent position's, the other force is applied by the rope. When both forces even out, the rigidbody will no longer be able to move.