Skip to main content

#VRCPlayerApi

<h4

Methods

id="bkmrk-methods"
class="anchoranchorWithStickyNavbar_LWe7">Methods</h4><tableName id="bkmrk-name-isplayergrounde"notes style="width: 100%;height: 308.875px;"> <tbody> <tr style="height: 29.7969px;"> <td style="width: 17.4268%; height: 29.7969px;">Name</td> <td style="width: 82.5732%; height: 29.7969px;">notes</td> </tr> <tr style="height: 86.8281px;"> <td style="width: 17.4268%; height: 86.8281px;">IsPlayerGrounded()</td> <td style="width:
82.5732%; height: 86.8281px;"> <ul> <li class="null">It returns true on the station. <ul> <li class="null">If the player is in station [seated: false], after
    After the player opens the MM, it returns false until the player exits the seat and hits the ground. <ul>
    <li class="null">It also means that the avatar plays the falling animation.</li> </ul> </li> </ul> </li> </ul> </td> </tr> <trstyle="height: 103.625px;"> <td style="width: 17.4268%; height: 103.625px;">GetTrackingData()</td> <td style="width:
    82.5732%; height: 103.625px;"> <ul> <li class="null">It's not working as written in theon docs when called in LateUpdate(). You have to call it on PostLateUpdate().</li> <li class="null">If you call this for a remote player,player: return the bone position. I didn't test about Generic avatar, but...</li> </ul> </td> </tr> <trstyle="height: 53.2344px;"> <td style="width: 17.4268%; height: 53.2344px;">GetBonePosition()</td> <td style="width:
    82.5732%; height: 53.2344px;"> <ul> <li>It returns the local avatar's data. <ul>
    <li>So, if you use it as a reference point, there are problems because there is athe fallback system.</li> </ul> </li> </ul> </td> </tr> <trstyle="height: 35.3906px;"> <td style="width: 17.4268%; height: 35.3906px;">GetBoneRotation()</td> <td style="width: 82.5732%; height: 35.3906px;"> <p>

    Same asto GetBonePosition().</p>

    </td> </tr> <tr><td style="width: 17.4268%;">TeleportTo()</td> <td style="width: 82.5732%;"> <p>

    There is a strange bug. The occurrence condition is unknown.unknown, The players sometimes get stuck in thewalls.

    walls.</p> </td> </tr> </tbody> </table> <p id="bkmrk-"><br></p>