Exemple #1
0
func (m *Mass) SetCylinderTotal(total_mass Real, direction int, radius, length Real) {
	C.dMassSetCylinderTotal((*C.dMass)(m), C.dReal(total_mass), C.int(direction), C.dReal(radius), C.dReal(length))
}
Exemple #2
0
// SetCylinderTotal sets the mass for a cylinder of given properties.
func (m *Mass) SetCylinderTotal(totalMass float64, direction int, radius, length float64) {
	c := &C.dMass{}
	C.dMassSetCylinderTotal(c, C.dReal(totalMass), C.int(direction), C.dReal(radius),
		C.dReal(length))
	m.fromC(c)
}