Relative Content

Tag Archive for c#unity-game-engineraycasting

Warping in a raycaster renderer made in unity

I am quite inexperienced with unity but i made a raycaster today but it had weird warping and i don’t know how to fix it, and would highly appreciate if anyone wants to help! 😀

Raycast not hitting enemy

I’m trying to make a player attack script so that when the mouse clicks on the enemy within a certain range it will call the attack enemy function (which then goes on to call a take Damage function from the enemyHealth script. However when I hit play and click on the enemy (that has a big enough collider to be detected by raycast and is well within the attackRange) it will not take damage.