Description Usage Arguments Value See Also Examples
View source: R/getPlayerOrientation.R
Return the player's pitch (angle in the up / down direction).
The default is to get the rotation for the first player spawned in the Minecraft
world, but this can be run for a different player by using the player_id
argument.
1 | getPlayerPitch(player_id = NULL)
|
player_id |
Integer giving the ID of a player. You can find IDs of all
current players using |
A numeric value between -90 and +90, giving the pitch of the player's viewpoint, with -90 indicating the player is looking straight up and +90 indicating that the player is looking straight down.
getPlayerDirection()
, getPlayerRotation()
, getPlayerPos()
1 2 3 4 5 6 7 | ## Not run:
getPlayerPitch()
example_playerId <- getPlayerIds()[1]
getPlayerPitch(example_playerId)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.