1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-12-25 02:00:37 +01:00

Fixed vector.interpolate bug

This commit is contained in:
Gael-de-Sailly 2015-04-14 21:23:45 +02:00
parent 67c3a33fd4
commit 3503838690

View File

@ -3,7 +3,7 @@
-- Temporary compatibility function - see minetest PR#1180
if not vector.interpolate then
vector.interpolate = function(pos1, pos2)
vector.interpolate = function(pos1, pos2, factor)
return {x = pos1.x + (pos2.x - pos1.x) * factor,
y = pos1.y + (pos2.y - pos1.y) * factor,
z = pos1.z + (pos2.z - pos1.z) * factor}