示例#1
0
文件: mass.go 项目: krux02/gode
func (m *Mass) SetTrimesh(density Real, g *Geom) {
	C.dMassSetTrimesh((*C.dMass)(m), C.dReal(density), (C.dGeomID)((*C.struct_dxGeom)(g)))
}
示例#2
0
文件: mass.go 项目: bfosberry/ode
// 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)
}