mirror of
https://github.com/ElCeejo/creatura.git
synced 2025-03-21 15:21:24 +00:00
Improved Physics
This commit is contained in:
parent
2d8c851a33
commit
78d16d485b
1 changed files with 0 additions and 2 deletions
|
@ -986,10 +986,8 @@ end
|
||||||
local function water_physics(self, pos, node)
|
local function water_physics(self, pos, node)
|
||||||
-- Props
|
-- Props
|
||||||
local gravity = self._movement_data.gravity
|
local gravity = self._movement_data.gravity
|
||||||
local height = self.height
|
|
||||||
-- Vectors
|
-- Vectors
|
||||||
pos.y = pos.y + 0.01
|
pos.y = pos.y + 0.01
|
||||||
local surface_pos = pos
|
|
||||||
if minetest.get_item_group(node.name, "liquid") < 1 then
|
if minetest.get_item_group(node.name, "liquid") < 1 then
|
||||||
self.object:set_acceleration({
|
self.object:set_acceleration({
|
||||||
x = 0,
|
x = 0,
|
||||||
|
|
Loading…
Add table
Reference in a new issue