Bram Stolk wrote:
> dJointAttach (jointid, 0,0) is valid use of ODE C API.
> You use it to temporarily disable a joint.
>
> In python, joint.attach(0,0) gives:
Oops... it turns out that joint.attach(None, None) works just fine.
Sorry for the noise.
Bram
>
> Traceback (most recent call last):
> File "tutorial3.py", line 491, in _mousefunc
> selected_slider.attach(0,0)
> File "joints.pyx", line 153, in ode.Joint.attach
> TypeError: Argument 'body1' has incorrect type (expected ode.Body, got int)
>
>
> bram
>
>
>
--
Bram Stolk, VR Engineer SARA, Amsterdam. tel +31 20 592 3000
"Windows is a 32-bit extension to a 16-bit graphical shell for an 8-bit
operating system originally coded for a 4-bit microprocessor by a 2-bit
company that can't stand 1 bit of competition."
|