forked from VoxeLibre/VoxeLibre
Disable physics when items are stuck
This commit is contained in:
parent
4ff31ffa8c
commit
4fd6e527a1
|
@ -465,9 +465,9 @@ core.register_entity(":__builtin:item", {
|
||||||
self.object:setvelocity(newv)
|
self.object:setvelocity(newv)
|
||||||
|
|
||||||
self.object:setacceleration({x = 0, y = -get_gravity(), z = 0})
|
self.object:setacceleration({x = 0, y = -get_gravity(), z = 0})
|
||||||
self.physical_state = true
|
self.physical_state = false
|
||||||
self.object:set_properties({
|
self.object:set_properties({
|
||||||
physical = true
|
physical = false
|
||||||
})
|
})
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue