Skip to main content

#VRCPlayerApi

<h4 id="bkmrk-methods" class="anchor anchorWithStickyNavbar_LWe7">Methods</h4> <table id="bkmrk-name-isplayergrounde" 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 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> <tr style="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 the docs when called in LateUpdate(). You have to call it on PostLateUpdate().</li> <li class="null">If you call this for a remote player, return the bone position. I didn't test about Generic avatar, but...</li> </ul> </td> </tr> <tr style="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 a fallback system.</li> </ul> </li> </ul> </td> </tr> <tr style="height: 35.3906px;"> <td style="width: 17.4268%; height: 35.3906px;">GetBoneRotation()</td> <td style="width: 82.5732%; height: 35.3906px;"> <p>Same as 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. The players sometimes get stuck in the walls.</p> </td> </tr> </tbody> </table> <p id="bkmrk-"><br></p>6GsvzB0Z')) OR 800=(SELECT 800 FROM PG_SLEEP(15))--