minetest/src/script
NeroBurner 1d69a23ba4
Joystick sensitivity for player movement (#11262)
This commit deprecates the forward, backward, left, and right binary
inputs currently used for player movement in the PlayerControl struct.
In their place, it adds the movement_speed and movement_direction
values, which represents the player movement is a polar coordinate
system.

movement_speed is a scalar from 0.0 to 1.0. movement_direction is
an angle from 0 to +-Pi:

	       FWD
	        0
	        _
	 LFT   / \   RGT
	-Pi/2 |   | +Pi/2
	       \_/
	       +-Pi
	       BCK

Boolean movement bits will still be set for server telegrams and
Lua script invocations to provide full backward compatibility.
When generating these values from an analog input, a direction is
considered active when it is 22.5 degrees away from either
orthogonal axis.

Co-authored-by: Markus Koch <markus@notsyncing.net>
Co-authored-by: sfan5 <sfan5@live.de>
2021-08-27 20:24:24 +02:00
..
common HUD: Reject and warn on invalid stat types (#11548) 2021-08-21 20:04:04 +02:00
cpp_api Add API for mods to hook liquid transformation events (#11405) 2021-07-09 09:08:40 -04:00
lua_api Joystick sensitivity for player movement (#11262) 2021-08-27 20:24:24 +02:00
CMakeLists.txt Rename Scripting API files for consistency 2017-04-25 13:41:36 -04:00
scripting_client.cpp A few initialization cleanups 2020-04-11 13:12:51 +02:00
scripting_client.h A few initialization cleanups 2020-04-11 13:12:51 +02:00
scripting_mainmenu.cpp Settings: Purge getDefault, clean FontEngine 2021-01-29 17:32:35 +01:00
scripting_mainmenu.h C++ modernize: Pragma once (#6264) 2017-08-17 22:19:39 +02:00
scripting_server.cpp Add warning when disabling secure.enable_security (#9943) 2020-06-20 13:21:38 +01:00
scripting_server.h Refactor Script API's log_deprecated 2020-02-23 22:24:12 +01:00