In my tvMesh, I dont understand why Im getting this error.
Im trying to center it from its size. (Its a label)
I get the error 'Invalid procedure call or arguement'
Whats the problem?
Public Sub PositionMesh()
Dim d3dTop As D3DVECTOR
Dim d3dBottom As D3DVECTOR
TextMesh.GetBoundingBox d3dBottom, d3dTop, True
TextMesh.SetPosition ((d3dTop.X - d3dBottom.X) / 2) + pos.X, ((d3dTop.Y - d3dBottom.Y) / 2) + pos.Y, ((d3dTop.z - d3dBottom.z) / 2) + pos.z
End Sub