entity created at parents position!

Blitz3D Forums/Blitz3D Programming/entity created at parents position!

Chimeara(Posted 2005) [#1]
ok... so apparently a mesh is not positioned at it's parents location when loaded..... but mine is, how do i fix it?

brace1pivot=CreatePivot()
Brace1=LoadMesh("Models\Lights\brace1.b3d",brace1pivot);brace


jfk EO-11110(Posted 2005) [#2]
parent it manually after loading

ParentEntity Brace1, brace1pivot


GfK(Posted 2005) [#3]
brace1pivot=CreatePivot()
This will create a pivot and its coords will be 0,0,0.
Brace1=LoadMesh("Models\Lights\brace1.b3d",brace1pivot);brace
This will load the mesh and position it at the exact same coordinates as its parent. If you *don't* want the model to be located at the same position as the pivot, then use this:
Brace1=LoadMesh("Models\Lights\brace1.b3d");brace

Bear in mind that the mesh's default position will still be 0,0,0. That's where all models are placed immediately after loading/creation.


Chimeara(Posted 2005) [#4]
Thanx