Hello Readers !!
Today I will explain you very important concept of gaming.
We all need to check objects in terms of Enemies, Players, Obstetrical, Walls many other things in the game.
We can do this by putting Colliders also. But we also have a Raycasting technique with us.
Through Raycast we can check the objects which are coming in our way.
Physics.SphereCast()
This is the function which we can use.
This will required following parameters.
With this you will able to check the objects which is coming in your way.
Try this and let me know if you have issue while using this.
Keep coding.
0 Comment(s)