Hi,
Correct:
- I’m using character controller to move my character.
- I’m having a wall with rigidbody and collider with mass ~1300.
- When I’m trying to move wall everything works as i expected too - I can’t move the wall because character controller doesn’t have any mass.
NOT Correct:
When I’m adding a force to the wall for example by explosion force from granate object and wall velocity is bigger than 0 ( for example wall started to falling dawn ), than my character controller is able to add force to this wall, huuge portion of force…, I can for example jump under leaning wall and push it into a space…
CharacterController.detectCollision is nothing that can help in my case. I would like to handle 2 scenarios:
- When wall velocity is bigger than X and it hits a player than player is dead (this scenario is easy and handled by now).
- If wall velocity is less than X then wall just stops on the player collider, just like during collision with terrain.
I need to stops character controller from adding force to anything. Is there any build in option for that?
Thanks