Quantcast
Channel: Answers for "Teleporter teleports one way not back [C#]"
Browsing all 8 articles
Browse latest View live

Answer by KdRWaylander

Hi, You need to initialise your targetTeleportTransform, right now it's not the case. And you don't need this line: `curTeleportTransform = transform;` since you already said it in your Awake() :) What...

View Article



Answer by Kelstek

Are you positive you assigned the TargetTeleportTransform on the second teleported GameObject?

View Article

Answer by Kelstek

By the way, you're setting the playerTransform once during Awake - I suspect you want that to be in Update(), as it will only be set once (where as te player's transform is constantly updating)....

View Article

Answer by Kelstek

Sorry for the scattered posting, but I think you'd do better to just attach a SphereCollider to the object, and use the OnCollide() method to detect when an object want to teleport, and to get their...

View Article

Answer by KdRWaylander

Hi, You need to initialise your targetTeleportTransform, right now it's not the case. And you don't need this line: `curTeleportTransform = transform;` since you already said it in your Awake() :) What...

View Article


Answer by Kelstek

Are you positive you assigned the TargetTeleportTransform on the second teleported GameObject?

View Article

Answer by Kelstek

By the way, you're setting the playerTransform once during Awake - I suspect you want that to be in Update(), as it will only be set once (where as te player's transform is constantly updating)....

View Article

Answer by Kelstek

Sorry for the scattered posting, but I think you'd do better to just attach a SphereCollider to the object, and use the OnCollide() method to detect when an object want to teleport, and to get their...

View Article

Browsing all 8 articles
Browse latest View live




Latest Images