Terrain as Parent
Blitz3D Forums/Blitz3D Beginners Area/Terrain as Parent
| ||
For some reason when I load a mesh as a child of terrain it does not appear. But when its just loaded is works fine. I need the meshes to be children of the terrain... how can I fix this?terrain = createterrain("heightmap.bmp") mesh = loadmesh("meshfile.x", terrain) ; this does not work mesh = loadmesh("meshfile.x") ; this works positionentity mesh, 256, 256, 10 |
| ||
I will probably be the positioning of the entity and the scaling. When you parent an entity to another, the child takes on the scale positioning and rotation values, relative to it's parent. Try loading the mesh, positioning/rotating/scaling, then using the parententity command. |
| ||
Yeah Ross you were right. Thank you. I solved it by setting the positioning function to global. positionentity mesh, 256, 256, 10, true |