← Back to team overview

yade-dev team mailing list archive

Re: new trunk features you might find useful :-)

 

> Oh, my bad. I see isActivated is a function, not a flag. Maybe I was 
> remembering some very old yade version?
> The usage I got in mind would now be implemented adding a "activated" 
> flag (or, say, isNotDead ;)) and making isActivated return it.
> It is the same functionality you added a different way, I think.
It would not be entirely the same in the sense that all
reimplementations of isActivated (such as in PeriodicEngine, the
collider etc) would have to check that flag as well; if someone would
forget to to check it in isActivated, the result would be odd. In this
case, it is the code that calls the engine who checks it, which is never
bypassed.

Cheers, v





References