← Back to team overview

yade-dev team mailing list archive

Re: Impossible to update velocity

 

Ok,

Is there any other way to change the velocity?


2010/4/16 Václav Šmilauer <eudoxos@xxxxxxxx>

>
> > 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
>
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-dev<https://launchpad.net/%7Eyade-dev>
> Post to     : yade-dev@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~yade-dev<https://launchpad.net/%7Eyade-dev>
> More help   : https://help.launchpad.net/ListHelp
>

Follow ups

References