mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-18 03:36:47 -04:00
Allow getting yaw of player through tablet component
This commit is contained in:
parent
73c642dee8
commit
c930ec329e
@ -37,4 +37,7 @@ class Tablet(val tablet: TabletWrapper) extends prefab.ManagedEnvironment with D
|
||||
|
||||
@Callback(doc = """function():number -- Gets the pitch of the player holding the tablet.""")
|
||||
def getPitch(context: Context, args: Arguments): Array[AnyRef] = result(tablet.player.rotationPitch)
|
||||
|
||||
@Callback(doc = """function():number -- Gets the yaw of the player holding the tablet.""")
|
||||
def getYaw(context: Context, args: Arguments): Array[AnyRef] = result(tablet.player.rotationYaw)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user