Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

im having trouble interacting #17

Open
Domenico2277 opened this issue Nov 5, 2022 · 1 comment
Open

im having trouble interacting #17

Domenico2277 opened this issue Nov 5, 2022 · 1 comment

Comments

@Domenico2277
Copy link

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

@CharaStatic
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants