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 ArticleAnswer by Kelstek
Are you positive you assigned the TargetTeleportTransform on the second teleported GameObject?
View ArticleAnswer 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 ArticleAnswer 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 ArticleAnswer 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 ArticleAnswer by Kelstek
Are you positive you assigned the TargetTeleportTransform on the second teleported GameObject?
View ArticleAnswer 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 ArticleAnswer 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
More Pages to Explore .....