← Back to team overview

yade-dev team mailing list archive

Re: Impossible to update velocity

 

> O.bodies[id1].state.vel[2] = -4.0
> print O.bodies[id1].state.vel[2]
Oh, f**k... that comes from fixing
https://bugs.launchpad.net/yade/+bug/539562

Now you change [2] of a _copy_ of the real object (return_by_value)
which doesn't propagate back to c++; whereas previously, you were
chaning [2] of a reference to the real c++ object...

What now? Screw this thing...

v





Follow ups

References