Example #1
0
/* 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)))
}
Example #2
0
func (this *Geom) GetNextBody() (next *Geom) {
	return (*Geom)((*C.struct_dxGeom)(C.dGeomGetBodyNext(C.dGeomID((*C.struct_dxGeom)(this)))))
}
Example #3
0
func (g GeomBase) c() C.dGeomID {
	return C.dGeomID(unsafe.Pointer(g))
}