SwitchCraftCC / Plethora-Fabric

A peripheral provider for ComputerCraft, ported to Fabric
MIT License
16 stars 13 forks source link

feat(neuralinterface): function to poll `yaw` and `pitch` #19

Closed imjamesb closed 1 year ago

imjamesb commented 1 year ago

There should be functions to get the yaw and pitch of a player using the neural interface.

jmc529 commented 1 year ago

These functions can be found within .getMeta___() type functions

for example:

local modules = peripheral.wrap("back")
local meta = modules.getMetaOwner()
local pitch = meta.pitch
local yaw = meta.yaw