1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-22 17:18:39 +00:00

Add ObjectRef:getvelocity(), ObjectRef:setyaw() and ObjectRef:getyaw()

This commit is contained in:
Perttu Ahola 2012-01-02 16:19:52 +02:00
parent 2445cbbbdc
commit 56f55ab1af
4 changed files with 61 additions and 0 deletions

View file

@ -200,8 +200,11 @@
-- - set_hp(hp): set number of hitpoints (2 * number of hearts)
-- LuaEntitySAO-only: (no-op for other objects)
-- - setvelocity({x=num, y=num, z=num})
-- - getvelocity() -> {x=num, y=num, z=num}
-- - setacceleration({x=num, y=num, z=num})
-- - getacceleration() -> {x=num, y=num, z=num}
-- - setyaw(radians)
-- - getyaw() -> radians
-- - settexturemod(mod)
-- - setsprite(p={x=0,y=0}, num_frames=1, framelength=0.2,
-- - select_horiz_by_yawpitch=false)