I’m trying to do a teleporter with Udon. I want to pass a vector variable between two script, like in the following screenshots.
What I want to do is teleporting the player from a position respect to the teleporter, to a position that have the same relative postion to the receiver. So I need to pass the difference between the position of the player and the position of the teleporter object.
Do I use Get Program Variable like this, or am I doing it wrong? What do I use as instance?
thanks for helping, I’m a newbie