setHeading: Set player heading

Description Usage Arguments Examples

View source: R/move.R

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

1
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

1
2
3
4
## Not run: 
setHeading(myid, 0)

## End(Not run)

ropenscilabs/miner.extra documentation built on Dec. 20, 2020, 1:25 p.m.