示例#1
0
文件: mass.go 项目: krux02/gode
func (m *Mass) SetCapsuleTotal(total_mass Real, direction int, radius, length Real) {
	C.dMassSetCapsuleTotal((*C.dMass)(m), C.dReal(total_mass), C.int(direction), C.dReal(radius), C.dReal(length))
}
示例#2
0
文件: mass.go 项目: bfosberry/ode
// SetCapsuleTotal sets the mass for a capsule of given properties.
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)
}