| Commit message (Collapse) | Author | Age |
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* added vector.rotate
* added vector.forward_from_rotation and vector.up_from_rotation
* added vector.forward_up_to_rotatiton
* fixed some bugs and formatting with vector functions
* shortened name of some new vector functions and added documentation
* made vector.rotate not require a unit vector as axis
* fixed crash with vector.forward_up_to_rot
* renamed new vector functions, made vector.rotate apply a rotation matrix, old vector.rotate is now called vector.rotate_around_axis
* documented vector function changes
* removed some whitespace to appease luacheck
* implemented and fixed optimization of vector.rotate_around_axis by SmallJoker
* added some unit tests for rotation vector functions
* clarified that rotation vectors are in radians and according to the left hand rule
* hopefully appeased luacheck
* renamed rotation_to_horizontal to forward_at_rotation, rotation_to_vertical to up_at_rotation
* handled cases where sin or cos are 0 in rotation vector functions
* added more comments
* clarified documentation of rotation vector functions
* added more unit tests
* changed way in which vector.rotate_around_axis is adjusted for left handed coordinate systems
* made vector.rotate_around_axis actually left handed
* unrolled matrix multiplication
* removed vector.forward_at_rotation and vector.up_at_rotation
* prettified vector.rotate_around_axis, made previous commits not break anything
* removed references to removed vector.forward_at_rotation and vector.up_at_rotation
* removed documentation of removed vector functions
* clarified documentation and fixed styling of rotation vector functions
* restyled comments minorly
* spelling fixes and some hopefully better comments
* allowed 'up' to be missing from vector.directions_to_rotation and removed requirement for unit vectors as arguments
* made vector.rotate_around_axis() right handed again for consistency
* documented previous changes
* made matrix multiplication actually multiply
* renamed vector.directions_to_rotation() to vector.dir_to_rotation()
* optimized a distance comparison
* Fixed potential false positive in unit tests.
Co-authored-by: NetherEran <nethereran@hotmail.com>
|
|
|
|
|
| |
* LuaItemStack: Add __tostring metamethod
* Clean up LuaItemStack::checkobject
|
| |
|
|
|
|
| |
It only works in the context of the mainmenu.
|
| |
|
|
|
|
|
|
|
| |
* minetest.serialize: Reversible number to string conversion
The %a format is not supported in Lua 5.1.
This commit also adds two tests for number serialization.
|
| |
|
| |
|
|
|
| |
Also adds an unittest
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
All on_* hooks that return an itemstack are NOT guaranteed to
modify and return the original stack. We cannot count on the
behavior of the existing builtin definitions not to be overridden
by game/mod logic.
|
| |
|
| |
|
|
|
|
| |
Was forgotten in 69bf964.
|
|
|
|
|
| |
* Trigger for 'all' as well
* Add description textarea, double-click to copy
|
| |
|
|
|
|
| |
Mostly copied from MarkuBu's code
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
(#7827)
Calling string.split(":A:B:C:D", ":") returns an empty array.
This is due to first empty string not making repeat loop decreasing max_split which has a 0 value when reaching until.
Changing max_splits default value from -1 to -2 fixes that issue.
|
|
|
|
|
| |
Remove unused variable 'seplen'.
Fix 'cparam2'->'param2'.
Do not initialise variable 'p' twice.
|
|
|
|
|
|
| |
Avoid crash in some situations when player is inside a node, causing
'above' to equal 'under'.
In this situation return 'under' which is the node position very close
to the face position that would normally be returned.
|
|
|
|
| |
Replaces mods and texture pack tabs with a single content tab
|
| |
|
| |
|
|
|
| |
vector.direction() now returns a normalised vector with direction p1 to p2.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
* Set placer to nil instead of a non-functional one
This requires nil checks in core.rotate_node and core.rotate_and_place.
|
|
|
| |
This properly checks for creative mode or privilege when using fixed rotate_node() function.
|
|
|
|
| |
Code based on initial implementation by @dsohler.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
* Fix and improve params consistency
* Move parenthesis requirement to descriptions
|
|
|
| |
Also remove `disable_escape_sequences` since it's not needed anymore.
|
|
|
|
|
|
| |
* [CSM] Add function to get player privileges + move related help functions to common
* Added @Zeno- const
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
This unifies the settings APIs.
This also unifies the sync and async registration APIs, since the async
registration API did not support adding non-functions to the API table.
|
|
|
|
|
|
| |
Avoids crash caused when 'pointed thing -under' and '-above' are not
face-neighbours, for example in the case of pointing to the top half
of a door.
|