![]() Check it out: using System.Collections Īnd please, before you think it: Yes, I remembered to set the target object in the editor. ![]() The first is this script, and it caused the eyes to dart 90 degrees counter-clockwise about the y axis (which is very wrong). I have tried two means to get the eyes to look at the target. That yellow ball you see is the target object and IS NOT inside the prefab. I have this prefab:Īs you can see, I verified that the registration points for the eyes are at the center of mass I also verified that they rotate correctly for the X, Y and Z axes. It concerns a method that I thought I was comfortable with, transform.LookAt(target). I have been troubleshooting a prefab for several hours and am out of ideas.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |