<feed xmlns='http://www.w3.org/2005/Atom'>
<title>minetest.git/builtin/common/tests, branch physics</title>
<subtitle>lizzy's patches for luanti
</subtitle>
<id>https://git.vlhl.dev/lizzy/luanti/minetest.git/atom?h=physics</id>
<link rel='self' href='https://git.vlhl.dev/lizzy/luanti/minetest.git/atom?h=physics'/>
<link rel='alternate' type='text/html' href='https://git.vlhl.dev/lizzy/luanti/minetest.git/'/>
<updated>2021-09-10T21:16:16+00:00</updated>
<entry>
<title>Split vector.new into 3 constructors</title>
<updated>2021-09-10T21:16:16+00:00</updated>
<author>
<name>DS</name>
<email>vorunbekannt75@web.de</email>
</author>
<published>2021-09-10T21:16:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vlhl.dev/lizzy/luanti/minetest.git/commit/?id=2cefe51d3b9bc4f3ae18854e171a06ea83e9cb25'/>
<id>urn:sha1:2cefe51d3b9bc4f3ae18854e171a06ea83e9cb25</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add metatables to lua vectors (#11039)</title>
<updated>2021-06-04T19:22:33+00:00</updated>
<author>
<name>DS</name>
<email>vorunbekannt75@web.de</email>
</author>
<published>2021-06-04T19:22:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vlhl.dev/lizzy/luanti/minetest.git/commit/?id=8f085e02a107dd8092393935bfa1bba71d2546d2'/>
<id>urn:sha1:8f085e02a107dd8092393935bfa1bba71d2546d2</id>
<content type='text'>
Add backwards-compatible metatable functions for vectors.</content>
</entry>
<entry>
<title>Add vector.to_string and vector.from_string (#10323)</title>
<updated>2021-04-05T13:55:56+00:00</updated>
<author>
<name>DS</name>
<email>vorunbekannt75@web.de</email>
</author>
<published>2021-04-05T13:55:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vlhl.dev/lizzy/luanti/minetest.git/commit/?id=23325277659132e95b346307b591c944625bda16'/>
<id>urn:sha1:23325277659132e95b346307b591c944625bda16</id>
<content type='text'>
Writing vectors as strings is very common and should belong to `vector.*`. `minetest.pos_to_string` is also too long to write, implies that one should only use it for positions and leaves no spaces after the commas.</content>
</entry>
<entry>
<title>Add vector.offset (#10321)</title>
<updated>2020-08-29T15:41:29+00:00</updated>
<author>
<name>DS</name>
<email>vorunbekannt75@web.de</email>
</author>
<published>2020-08-29T15:41:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vlhl.dev/lizzy/luanti/minetest.git/commit/?id=28e87ce9d5fdf163c1eb0daf83279e949f84765d'/>
<id>urn:sha1:28e87ce9d5fdf163c1eb0daf83279e949f84765d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Some vector functions useful for working with rotations (#9572)</title>
<updated>2020-06-09T17:38:39+00:00</updated>
<author>
<name>NetherEran</name>
<email>55532075+NetherEran@users.noreply.github.com</email>
</author>
<published>2020-06-09T17:38:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vlhl.dev/lizzy/luanti/minetest.git/commit/?id=7148834440d10bc211628aa2652e31166bdd58a0'/>
<id>urn:sha1:7148834440d10bc211628aa2652e31166bdd58a0</id>
<content type='text'>
* 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 &lt;nethereran@hotmail.com&gt;</content>
</entry>
<entry>
<title>minetest.serialize: Reversible number serialization (#9722)</title>
<updated>2020-04-22T14:43:48+00:00</updated>
<author>
<name>HybridDog</name>
<email>3192173+HybridDog@users.noreply.github.com</email>
</author>
<published>2020-04-22T14:43:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vlhl.dev/lizzy/luanti/minetest.git/commit/?id=5355cb1d87f60bc5548a8a9311e597b9c6046013'/>
<id>urn:sha1:5355cb1d87f60bc5548a8a9311e597b9c6046013</id>
<content type='text'>
* 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.
</content>
</entry>
<entry>
<title>Fix potential security issue(s), documentation on minetest.deserialize() (#9369)</title>
<updated>2020-03-05T21:03:04+00:00</updated>
<author>
<name>sfan5</name>
<email>sfan5@live.de</email>
</author>
<published>2020-03-05T21:03:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vlhl.dev/lizzy/luanti/minetest.git/commit/?id=8d6a0b917ce1e7f4f1017835af0ca76e79c98c38'/>
<id>urn:sha1:8d6a0b917ce1e7f4f1017835af0ca76e79c98c38</id>
<content type='text'>
Also adds an unittest</content>
</entry>
<entry>
<title>Add Lua unit tests to builtin using busted (#9184)</title>
<updated>2020-01-18T02:09:18+00:00</updated>
<author>
<name>rubenwardy</name>
<email>rw@rubenwardy.com</email>
</author>
<published>2020-01-18T02:09:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vlhl.dev/lizzy/luanti/minetest.git/commit/?id=1173ff0c13a07dec2ede3166378dc5f50fff37b3'/>
<id>urn:sha1:1173ff0c13a07dec2ede3166378dc5f50fff37b3</id>
<content type='text'>
</content>
</entry>
</feed>
