Hi,
I am having a frustrating issue with my character controller. Whenever I try and have anything go to it’s location, the GameObject shakes violently and slowly slides down the screen. I have stripped down my entire game down to figure out whats going wrong, and have even recreated the problem. The following is a simple playground I made to recreate the scenario:
I have a character controller (“player”) that is in a 2-D side view space, a floor plane that serves no purpose, and have also created an upright 2d plane (“graphic”). The two objects are not parented to one another. The character controller does not have any movement codes attached to it. The 2-D plane (“graphic”) simply has this JavaScript attached to it:
function Update () {
transform.position = GameObject.Find(“player”).transform.position;
}
However, when I click play the 2-D “graphic” plane shakes violently, going from y=10 to y=3 and so forth.
Attached is an image.
It’s bizarre. Everything was working for about 2 weeks, this exact method of having a graphic follow a character controller. Then all the sudden this came up. It happens in any project I create.
Please help!
-Thomas Brush