Learn R Programming

miner (version 0.1.2)

setHeading: Set player heading

Description

Set the direction in which moveForward will move the player. The heading is measured in degrees. A heading of 180 or -180 degreees is towards North or negative z A heading of 0 degreees is towards South or positive z A heading of 270 or -90 degreees is towards East or positive x A heading of 90 degrees is towards West or negative x

Usage

setHeading(player_id, new_heading)

Arguments

player_id

An integer with the player id

new_heading

A numeric with the direction to head forward

Examples

Run this code
# NOT RUN {
setHeading(myid, 0)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab