func (m *Mass) SetBox(density float64, lens Vector3) {
	c := &C.dMass{}
	C.dMassSetBox(c, C.dReal(density),
		C.dReal(lens[0]), C.dReal(lens[1]), C.dReal(lens[2]))
	m.fromC(c)
}
SetBox sets the mass for a box of given properties.
package ode
import "C"
type Mass struct {
	Center  Vector3
	Inertia Matrix3
	Mass    float64
}
func (m *Mass) toC(c *C.dMass) {
	c.mass = C.dReal(m.Mass)
	Vector(m.Center).toC((*C.dReal)(&c.c[0]))
	Matrix(m.Inertia).toC((*C.dReal)(&c.I[0]))
}
func (m *Mass) fromC(c *C.dMass) {
	m.Mass = float64(c.mass)
	Vector(m.Center).fromC((*C.dReal)(&c.c[0]))
	Matrix(m.Inertia).fromC((*C.dReal)(&c.I[0]))
}
func NewMass() *Mass {
	return &Mass{
		Center:  NewVector3(),
		Inertia: NewMatrix3(),
	}
}
func (m *Mass) Check() bool {
	c := &C.dMass{}
	m.toC(c)
	return C.dMassCheck(c) != 0
}
func (m *Mass) SetZero() {
	c := &C.dMass{}
	C.dMassSetZero(c)
	m.fromC(c)
}
func (m *Mass) SetParams(mass float64, com Vector3, inert Matrix3) {
	c := &C.dMass{}
	C.dMassSetParameters(c, C.dReal(mass),
		C.dReal(com[0]), C.dReal(com[1]), C.dReal(com[2]),
		C.dReal(inert[0][0]), C.dReal(inert[1][1]), C.dReal(inert[2][2]),
		C.dReal(inert[0][1]), C.dReal(inert[0][2]), C.dReal(inert[1][3]))
	m.fromC(c)
}
func (m *Mass) SetSphere(density, radius float64) {
	c := &C.dMass{}
	C.dMassSetSphere(c, C.dReal(density), C.dReal(radius))
	m.fromC(c)
}
func (m *Mass) SetSphereTotal(totalMass, radius float64) {
	c := &C.dMass{}
	C.dMassSetSphereTotal(c, C.dReal(totalMass), C.dReal(radius))
	m.fromC(c)
}
func (m *Mass) SetCapsule(density float64, direction int, radius, length float64) {
	c := &C.dMass{}
	C.dMassSetCapsule(c, C.dReal(density), C.int(direction), C.dReal(radius),
		C.dReal(length))
	m.fromC(c)
}
func (m *Mass) SetCapsuleTotal(totalMass float64, direction int, radius, length float64) {
	c := &C.dMass{}
	C.dMassSetCapsuleTotal(c, C.dReal(totalMass), C.int(direction), C.dReal(radius),
		C.dReal(length))
	m.fromC(c)
}
func (m *Mass) SetCylinder(density float64, direction int, radius, length float64) {
	c := &C.dMass{}
	C.dMassSetCylinder(c, C.dReal(density), C.int(direction), C.dReal(radius),
		C.dReal(length))
	m.fromC(c)
}
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)
}