• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

Get Bounding Box Size of a prefab

mrsquish

New member
Hey All,

I'm working on an app to do my own random gen implementation. Currently I'm playing with noise generation and adjusting the prefab location (bringing them up to the correct ground level). But obviously, the generated ground isn't flat, and it needs to be where ever a prefab is located. Not a particularly difficult thing to code, but I don't know two things.

1 - Where can I find the dimensions of a prefab (x, y, z) - particularly x and z at the moment.

2 - How does the rotation in the prefab.xml relate to N, S, E, W?

Cheers all.

 
I don't know where to find the dimensions.

The rotation gives the direction the front of the prefab is facing:

0 is South

1 is East

2 is North

3 is West

 
Back
Top