func (m *Mass) SetTrimesh(density Real, g *Geom) { C.dMassSetTrimesh((*C.dMass)(m), C.dReal(density), (C.dGeomID)((*C.struct_dxGeom)(g))) }
// SetTrimesh sets the mass for the given triangle mesh. func (m *Mass) SetTriMesh(density float64, mesh TriMesh) { c := &C.dMass{} C.dMassSetTrimesh(c, C.dReal(density), mesh.c()) m.fromC(c) }