RPG-Tutorial
RPG-Tutorial copied to clipboard
im having trouble interacting
ever scince i wrote this peice of code Quaternion lookRotation = Quaternion.LookRotation(new Vector3(direction.x, 0f, direction.z)); my player did not move to the interactble
what am i doing wrong
im having a diffrent issue surrounding the same code area. My "enemy" doesn't rotate to face the player as it should be doing, instead it acts as if its right, left, front n back are all its face n rotates the one closest to the player bout 20 degrees to have that side somewhat facing the player. In addition if the player walks around the enemy it rotates back n have the 1/4 sides closest to the player do the same process