im rushing around at the moment and cant think quickly enough to make one myself.
And nope, i dont mean CreateCube()
Something that does it using the createmesh functions?
Cheers guys (and any gals who are around too!) :)
[edit]
Found a fix:
And nope, i dont mean CreateCube()
Something that does it using the createmesh functions?
Cheers guys (and any gals who are around too!) :)
[edit]
Found a fix:
Function CreateCube(parent=0) Local m,s m=CreateMesh(parent) s=CreateSurface( m) AddVertex s,-1,+1,-1,0,0:AddVertex s,+1,+1,-1,1,0 AddVertex s,+1,-1,-1,1,1:AddVertex s,-1,-1,-1,0,1 AddTriangle s,0,1,2:AddTriangle s,0,2,3 s=CreateSurface( m) AddVertex s,+1,+1,-1,0,0:AddVertex s,+1,+1,+1,1,0 AddVertex s,+1,-1,+1,1,1:AddVertex s,+1,-1,-1,0,1 AddTriangle s,0,1,2:AddTriangle s,0,2,3 s=CreateSurface( m) AddVertex s,+1,+1,+1,0,0:AddVertex s,-1,+1,+1,1,0 AddVertex s,-1,-1,+1,1,1:AddVertex s,+1,-1,+1,0,1 AddTriangle s,0,1,2:AddTriangle s,0,2,3 s=CreateSurface( m) AddVertex s,-1,+1,+1,0,0:AddVertex s,-1,+1,-1,1,0 AddVertex s,-1,-1,-1,1,1:AddVertex s,-1,-1,+1,0,1 AddTriangle s,0,1,2:AddTriangle s,0,2,3 s=CreateSurface( m) AddVertex s,-1,+1,+1,0,1:AddVertex s,+1,+1,+1,0,0 AddVertex s,+1,+1,-1,1,0:AddVertex s,-1,+1,-1,1,1 AddTriangle s,1,2,0:AddTriangle s,2,3,0 s=CreateSurface( m) AddVertex s,-1,-1,-1,1,0:AddVertex s,+1,-1,-1,1,1 AddVertex s,+1,-1,+1,0,1:AddVertex s,-1,-1,+1,0,0 AddTriangle s,0,1,2:AddTriangle s,0,2,3 FitMesh m,-1,-1,-1,2,2,2 UpdateNormals m Return m End Function