Support Forum

Rigidbody issue. Either doesn't move or no gravity

Hello,

I just recently purchased the asset. To test it out, I created a cube, added a rigidbody to it and added the AIPath script to it. The box didn’t work so upon looking through the forums, I found the recommendation to change the Update to FixedUpdate and change rigid.AddForce(dir) to rigid.velocity = dir.

Doing so enables the box to move, however the box seems to ignore gravity. All I’ve been trying to achieve is have a rigidbody get to a target, do an appropriate action and get knocked back by force if hit. So far I’ve had much better luck using Unity’s navmesh system. Does anyone have any experience getting this to work with a rigidbody?

Thanks for any advice.

DId you get help from the dev?