For some reason the mass is still 0.0. I've played around with the code for an hour and i'm really stuck.
Here is the code I used:
Object = NextObject()
Load Object Files(ItemIndex).Path$, Object
Name$ = GetFileName2$(GetFileName$(Files(ItemIndex).Path$)) ` Gets the filename
TempObject = NextObject()
TempMesh = NextObject()
Make Mesh From Object TempMesh, Object
Make Object TempObject, TempMesh, 0
DeleteMesh(TempMesh)
If File Exist(Name$ + ".TMESH") = 0 Then DYN COOK Triangle MESH TempObject, Name$ + ".TMESH"
DYN LOAD Triangle MESH Name$ + ".TMESH", Object
DYN MAKE Triangle MESH Object, Object, Object Size(Object, 1) * 0.1
DYN UPDATE MASS FROM SHAPES Object, 1.0, Object Size(Object, 1) * 0.1
To make it easy on myself I set the triangleMeshID to the same thing as the object ID. I got no errors and when I get the mass it is 0.0 for some reason.
I have no idea why I can't make it have mass.
Thanks for your help in advance,
DigitalFury