Example #1
0
File: mass.go Project: krux02/gode
func (m *Mass) SetBoxTotal(total_mass, lx, ly, lz Real) {
	C.dMassSetBoxTotal((*C.dMass)(m), C.dReal(total_mass), C.dReal(lx), C.dReal(ly), C.dReal(lz))
}
Example #2
0
// SetBoxTotal sets the mass for a box of given properties.
func (m *Mass) SetBoxTotal(totalMass float64, lens Vector3) {
	c := &C.dMass{}
	C.dMassSetBoxTotal(c, C.dReal(totalMass),
		C.dReal(lens[0]), C.dReal(lens[1]), C.dReal(lens[2]))
	m.fromC(c)
}