Question by
Wesley21spelde · Aug 21, 2016 at 04:11 PM ·
transformpositionnot working
Trigger Problems
Hey Guys im Having problems with this part what did i do wrong?
the player and the atv transform position is not working.
void Update ()
{
if (Input.GetKey(KeyCode.F))
{
Player.SetActive(true);
ATVplayer.SetActive(false);
ATV.SetActive(true);
Trigger.SetActive(true);
TriggerATV.SetActive(true);
Player.transform.position = ATVplayer.position.rotation;
ATV.transform.position = ATVplayer.position.rotation;
}
}
}
Comment
Answer by Monkiman300 · Aug 22, 2016 at 10:31 AM
If you're wanting the rotations to be the same you would need ATVplayer.transform.rotation
instead of the position. If you want the position you would need ATVplayer.transform.position
Hope that helps :)
Your answer
![](https://koobas.hobune.stream/wayback/20220612091251im_/https://answers.unity.com/themes/thub/images/avi.jpg)