示例#1
0
文件: common.go 项目: krux02/gode
/* private functions that must be implemented by the collision library:
 * (1) indicate that a geom has moved, (2) get the next geom in a body list.
 * these functions are called whenever the position of geoms connected to a
 * body have changed, e.g. with dBodySetPosition(), dBodySetRotation(), or
 * when the ODE step function updates the body state.
 */
func (this *Geom) GeomMoved() {
	C.dGeomMoved(C.dGeomID((*C.struct_dxGeom)(this)))
}
示例#2
0
文件: common.go 项目: krux02/gode
func (this *Geom) GetNextBody() (next *Geom) {
	return (*Geom)((*C.struct_dxGeom)(C.dGeomGetBodyNext(C.dGeomID((*C.struct_dxGeom)(this)))))
}
示例#3
0
文件: geom.go 项目: bfosberry/ode
func (g GeomBase) c() C.dGeomID {
	return C.dGeomID(unsafe.Pointer(g))
}