RPG-Tutorial icon indicating copy to clipboard operation
RPG-Tutorial copied to clipboard

im having trouble interacting

Open Domenico2277 opened this issue 3 years ago • 1 comments

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

Domenico2277 avatar Nov 05 '22 09:11 Domenico2277

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

CharaStatic avatar Dec 19 '22 10:12 CharaStatic