I've recently upgraded our NPC character controller to the UCC from an older version of TPC. We have nearly all of the issues ironed out but for some reason, one of our NPCs is able to be pushed around by the player, but others are not. Is there some setting somewhere that I might be overlooking?
We do want to be able to push the enemy NPCs away so that they can't corner the player. I was under the impression though that I would have to write some code to apply a pushing force to the NPCs to achieve this.
Our upgrade process involved reconfiguring one NPC's prefab with the new UCC components by hand until it was working (this happens to be the NPC that can be pushed around). Then I wrote an editor script to automatically duplicate the changes on the remaining NPCs. There's probably some discrepancy but I can't figure out what it is.
The player uses a non-kinematic rigidbody character controller that I wrote. It uses a hover method similar to the one in this tutorial video.
The pushable NPC's UCC mass is 20, and for comparison, two other enemies with masses of 10 and 70 cannot be pushed at all. The player's rigidbody mass is 70.
The NPCs and the player use vertically aligned capsule colliders that are all roughly 2 units high (the player's collider stops short of the ground though due to the hover method being used.)
Any help would be greatly appreciated. Also, let me know if there's any other information I could provide to help figure out what's going on.
We do want to be able to push the enemy NPCs away so that they can't corner the player. I was under the impression though that I would have to write some code to apply a pushing force to the NPCs to achieve this.
Our upgrade process involved reconfiguring one NPC's prefab with the new UCC components by hand until it was working (this happens to be the NPC that can be pushed around). Then I wrote an editor script to automatically duplicate the changes on the remaining NPCs. There's probably some discrepancy but I can't figure out what it is.
The player uses a non-kinematic rigidbody character controller that I wrote. It uses a hover method similar to the one in this tutorial video.
The pushable NPC's UCC mass is 20, and for comparison, two other enemies with masses of 10 and 70 cannot be pushed at all. The player's rigidbody mass is 70.
The NPCs and the player use vertically aligned capsule colliders that are all roughly 2 units high (the player's collider stops short of the ground though due to the hover method being used.)
Any help would be greatly appreciated. Also, let me know if there's any other information I could provide to help figure out what's going on.