Author Topic: How to fix item floating issue on brick?  (Read 668 times)

Making food shenanigans for Lord Tony's medieval RPG. Was wondering how to fix the floating issue where the item floats slightly above the brick?




Help is much appreciated.

I think items just float by default, they might have to be somewhat below the 3D grid to counteract that

I think items just float by default, they might have to be somewhat below the 3D grid to counteract that
Tried that, didn't work.

Using setItem on a brick sets the item's location based on the item's world box bounds. There's no way to get around this without rewriting the setItem function

Using setItem on a brick sets the item's location based on the item's world box bounds. There's no way to get around this without rewriting the setItem function
What if you just overwrote the model's bounds? Can you do that with items?

COuldnt you just set the model as center as you can in milkshape?

COuldnt you just set the model as center as you can in milkshape?
I tried moving the model down slightly and it didn't work. It stayed at the same floating position.

What if you just overwrote the model's bounds? Can you do that with items?
The bounds (aka getWorldBox(); ) are calculated by the engine based on the maximum and minimum extent of the polygons.
« Last Edit: October 23, 2018, 12:16:55 PM by DurkaDude »

couldnt you set the dts bounds with a bounds box prior to export in blender?

couldnt you set the dts bounds with a bounds box prior to export in blender?
I use blender to model and i export with milkshape.

Someone fixed my pizza before but I forgot how.

Pretty sure it's model related

u could place it 1 small brick below the brick you wanted to spawn it on but it might be cut off alot

I use blender to model and i export with milkshape.
What's wrong with blender export?

Yeah as Conan has said try putting a bounds box