[ODE] dBodySetPosition - locked space?

Jon Watte (ODE) hplus-ode at mindcontrol.org
Tue Apr 4 11:05:19 MST 2006


A space is locked while you're doing collision. My guess is you do this 
work from within a near callback.

Instead, remember the fact that the player is dieing, and do the fix-ups 
outside of ODE. (In general, games typically post messages to objects, 
whcih get run out of a message queue, rather than doing things to 
objects directly within callbacks.)

Cheers,

		/ h+


Jean-Sebastien Guay wrote:
> Hello,
> 
> In my game, when the player "dies", I want to move him back to the starting
> point. To do that, I move the graphical object, then call dBodySetPosition to
> move the associated rigid body object to the same place. However, at that call,
> I get an ODE internal error message box saying "invalid operation for locked
> space".
> 
> What's happening? I didn't even know I had locked the space... Can I unlock it?
> I see no reference to this in the user guide.
> 
> Thanks in advance,
> 
> J-S
> --
> ______________________________________________________
> Jean-Sebastien Guay     jean-sebastien.guay at polymtl.ca
>                          http://whitestar02.webhop.org
> _______________________________________________
> ODE mailing list
> ODE at q12.org
> http://q12.org/mailman/listinfo/ode
> 
> 


More information about the ODE mailing list