So here’s some wierd behaviour I encountered.I have a simple character that uses my custom script for movement .My character has a rigidbody and a box collider and uses RigidBody.movePosition to move.The issue is when my character moves toward an enemy character which also has a rigidbody and a box collider my character kind of climbs on top of the enemy and sometimes even launches the character in the air.I even tried using rigidbody.position instead of moveposition to see if the function was generating the upwards force to no help. i have attached a video showing the issue with the physics profiler turned on.Any one have any idead how to fix the problem.I even removed all scripts from one of the enemy objects and it still launches me in the air if i try to move toward it when we are already colliding.Also something thast wierd is if the character lands on top of the enemy the character bounces away.
Here’s a link to a video showing the problem.
It turns out that its probably being caused by the navmesh agent Component in the enemy character.Removing the agent component seems to solve the issue.At least this issue.If anyone has any ideas please help.