Update entities.lua

This commit is contained in:
Alexsandro Percy 2023-03-28 08:34:37 -03:00 committed by GitHub
parent 02738e262c
commit d88eff9cf8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -601,6 +601,7 @@ minetest.register_entity("ap_airship:airship", {
self._longit_speed = longit_speed --for anchor verify
local relative_longit_speed = ap_airship.dot(vector.add(velocity, wind_speed), hull_direction)
self._relative_longit_speed = relative_longit_speed
local longit_drag = vector.multiply(hull_direction,relative_longit_speed*
relative_longit_speed*LONGIT_DRAG_FACTOR*-1*ap_airship.sign(relative_longit_speed))