Hello,
I have an empty object called “person” that has a child cube called “body” which also has a child cube called, “head”. I have a script attached to “person” (the root object) that instructs the person’s body to face the next way point (using transform.LookAt()), and the head to look at the target (also using transform.LookAt()).
To speed up the frames per second in my game, since I plan on using several people, I only have my script do this every time the Update() function gets called 10 times. Since LookAt() gets used twice in the same Update() function every 10 calls to Update(), I notice that when the body turns, the head also has to turn along with it since it is attached to the body (causing the head to flicker in the wrong direction every 10 times the Update() function gets called).
Is there a way to script an object to not render just for 1 frame (making it look as if that object is motionless)? I don’t mean make it invisible, but make it look as if it is stuck in 3D space and unchanged?
Thank you,
Michael S. Lowe