mirror of
				https://github.com/luanti-org/luanti.git
				synced 2025-10-31 07:25:22 +01:00 
			
		
		
		
	core: Add dir_to_yaw and yaw_to_dir helpers
These are needed to go from things like entity yaw to a vector and vice versa.
This commit is contained in:
		| @@ -2403,6 +2403,10 @@ and `minetest.auth_reload` call the authetification handler. | ||||
|     * Convert a vector to a wallmounted value, used for `paramtype2="wallmounted"` | ||||
| * `minetest.wallmounted_to_dir(wallmounted)` | ||||
|     * Convert a wallmounted value back into a vector aimed directly out the "back" of a node | ||||
| * `minetest.dir_to_yaw(dir)` | ||||
|     * Convert a vector into a yaw (angle) | ||||
| * `minetest.yaw_to_dir(yaw)` | ||||
|     * Convert yaw (angle) to a vector | ||||
| * `minetest.get_node_drops(nodename, toolname)` | ||||
|     * Returns list of item names. | ||||
|     * **Note**: This will be removed or modified in a future version. | ||||
|   | ||||
		Reference in New Issue
	
	Block a user