I need to "throw" an AIPath object


So in my game, the player can pick up objects on a path and then throw them. The object would then land, and resume pathfinding.

I had this working with Unity’s navmesh by using a Rigidbody and turning the agent off and on.

However, i just implemented this asset and can’t figure out how to do this. I’ve removed the Rigidbody since it seems like it comes with it’s own gravity. Picking up works fine, but I’d love to be able to “addForce” on the object to toss it.

Any idea how to simply do this?

wanted to bump the thread


I would suggest the same thing as you did for your unity agent. Disable the movement script and enable/attach a rigidbody when you pick it up and throw it. Then when it lands you remove the rigidbody and enable the movement script again.

1 Like