Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Limit GameObject Movement with Rope
#4
(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.
Reply


Messages In This Thread
Limit GameObject Movement with Rope - by gigass21 - 20-04-2021, 11:52 AM
RE: Limit GameObject Movement with Rope - by josemendez - 21-04-2021, 08:37 AM