trying to place a mesh object at a location of the object and removing the area where they collide. I am using an object which is a half sphere object.
I dont know if im on the right track
load object code
LOAD OBJECT "crater.3ds",1 : MAKE MESH FROM OBJECT 1,1 :DELETE OBJECT 1
createcode function i am trying to write but i dont know if im on the wrong track and what the parameters mean for VertexIndex,VertexStart,VertexEnd,IndexStart,IndexEnd
function createcrater(ObjectNumber,LimbNumber,MeshNumber)
LOCK VERTEXDATA FOR LIMB ObjectNumber,LimbNumber,1
XLIMB#=LIMB POSITION X(ObjectNumber,LimbNumber)
YLIMB#=LIMB POSITION Y(ObjectNumber,LimbNumber)
ZLIMB#=LIMB POSITION Z(ObjectNumber,LimbNumber)
X#=GET VERTEXDATA POSITION X(VertexIndex)
Y#=GET VERTEXDATA POSITION Y(VertexIndex)
Z#=GET VERTEXDATA POSITION Z(VertexIndex)
LOCK VERTEXDATA FOR MESH MeshNumber
ADD MESH TO VERTEXDATA MeshNumber
DELETE MESH FROM VERTEXDATA VertexStart, VertexEnd, IndexStart, IndexEnd
UNLOCK VERTEXDATA
endfunction
Another thing i was planning on passing limb 0 so i can get access to the objects root data.
fubar