1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-17 10:25:21 +02:00

lua methods set_look_pitch and set_look_yaw

This commit is contained in:
RealBadAngel
2013-03-17 12:16:57 +01:00
committed by kwolekr
parent c00c8832c6
commit 7f51b2da28
5 changed files with 51 additions and 2 deletions

View File

@@ -1228,6 +1228,8 @@ Player-only: (no-op for other objects)
- get_look_dir(): get camera direction as a unit vector
- get_look_pitch(): pitch in radians
- get_look_yaw(): yaw in radians (wraps around pretty randomly as of now)
- set_look_pitch(radians): sets look pitch
- set_look_yaw(radians): sets look yaw
- set_inventory_formspec(formspec)
^ Redefine player's inventory form
^ Should usually be called in on_joinplayer