Im making a kinda Mirrors edge game,
I would like to perform a wallrun only when im in collision with my map.
My map is Tag:“Map”
I have read some tuto but nothing.
Here are my condition to perform a wallRun, I want to add if im colliding with “Map”
if(canWallRun == true && characterController.isGrounded == false)// && characterController.collides… == “Map”)
How can I make this action possible only when im colliding the map
I suspect that if your level is on big mesh then you will likely always be colliding with it.
However you can use these functions in a monobehaviour on your character:
This will give you a function call everytime you begin to collide, stay in a collision and exit a collision on that gameobject.
With the information you get from the Collision parameter in the funciton you can check that the game object you are colliding with is the “Map”.
Hope that this helps you.