This has to do with model alignment, depending where the center is relative to the model they may sink or hover above ground when rotated, because collision boxes aren't affected.runs wrote:I have an issue when a mob dies, lays one node above ground.
If rotation is to be used extensively models have to be aligned accordingly. However this is a simple case, take a look in zombiestrd/init.lua - the model used is centered 1m above feet level, so collisionbox has to be adjusted
Code: Select all
-- workaround for models bottom y being -1.
local props = self.object:get_properties()
props.collisionbox[2] = props.collisionbox[1]
self.object:set_properties({collisionbox=props.collisionbox})