I have created my own derived AIController and Pawn classes.
When pawn gets hit he falls down and lies on the ground for a few seconds then gets back up. While the pawn is lying on the ground he still is rotating towards the player as the player moves around. I know my code isn't doing this. It probably is something updating its rotation in AIController or Pawn but I cannot figure out what's doing it.
If I set the pawn's physics to PHYS_None while its lying on ground the rotation problem goes away. I guess this is a solution but I could imagine this could also cause me some problems later on down the road if I want to other things with the pawn while it's lying down.
Is there anyway to turn off this auto rotation towards the player aside from 'turning off' it's physics?
Thanks!
When pawn gets hit he falls down and lies on the ground for a few seconds then gets back up. While the pawn is lying on the ground he still is rotating towards the player as the player moves around. I know my code isn't doing this. It probably is something updating its rotation in AIController or Pawn but I cannot figure out what's doing it.
If I set the pawn's physics to PHYS_None while its lying on ground the rotation problem goes away. I guess this is a solution but I could imagine this could also cause me some problems later on down the road if I want to other things with the pawn while it's lying down.
Is there anyway to turn off this auto rotation towards the player aside from 'turning off' it's physics?
Thanks!
Comment