Feature Request: asleep / awake callback

Project5

18-03-2006 18:34:24

@Walaber: I was interested in adding a fastdelegate callback to OgreNewt to handle Newton's notifications for when it puts an object to sleep and wakes it up. Is this something you have in the works all ready, or should I post a patch here / email it to you?

--Ben

walaber

18-03-2006 18:50:33

you're right, I forgot that callback! feel free to make a patch / email for it, I'll incorporate into CVS this weekend.

it should be the "autoActivateCallback" I think is what Newton calls it.

Project5

19-03-2006 17:27:39

I'll have it done by tonight / tomorrow lunch.

How attached are you to that name? The reason I ask is that Newton uses one callback for both putting things to sleep and waking them up, so I was thinking of putting in either a splitter and having "autoActivateCallback" as well as "autoDeactivateCallback", or just one "autoActiveStateChangeCallback" which would pass a bool as to the current state.

Let me know which you prefer :-)

--Ben

walaber

19-03-2006 19:31:39

it should be whatever Newton calls it.

walaber

20-03-2006 17:51:29

thanks, I received your email. it has been committed to CVS.