Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Can't teleport player with charactercontroller and rigidbody?

Discussion in 'Scripting' started by thesupersoup, Aug 15, 2019.

  1. thesupersoup

    thesupersoup

    Joined:
    Nov 27, 2017
    Posts:
    70
    I'm having difficulty teleporting the player character. I've tried this.gameObject.transform.position setting, I've tried rigidbody.Sleep() and rigidbody.MovePosition(), nothing seems to be working.

    Is there something I'm missing? What's the best way to do this?
     
  2. thesupersoup

    thesupersoup

    Joined:
    Nov 27, 2017
    Posts:
    70
    antwonywon, qenious, Ksanone and 7 others like this.
  3. glynxprojects

    glynxprojects

    Joined:
    Jan 11, 2021
    Posts:
    1
    I LOVE YOU, YOU JUST SAVED MY LIFE, I WOULD KISS YOUR MOUTH RIGHT F***ING NOW IF I COULD.
     
    qenious, Ksanone, zchek and 1 other person like this.
  4. LaxisFR

    LaxisFR

    Joined:
    May 31, 2021
    Posts:
    1
  5. PrasadPDC

    PrasadPDC

    Joined:
    Jan 26, 2020
    Posts:
    3
    control bro control
     
    zchek likes this.
  6. VladimirMacoun

    VladimirMacoun

    Joined:
    Jul 10, 2017
    Posts:
    6