NewtonWorldSetUserData

Apouche

08-03-2007 03:59:31

Has the function NewtonWorldSetUserData been implemented as the OgreNewt library or do we have to use the one that comes with Newton.

The NewtonBody::SetUserData has been implemented but I didn't find this one in the library is this normal ? Should I look more precisely ?

walaber

08-03-2007 05:38:53

ogrenewt uses that to keep track of the OgreNewt::World object... are you saying you would like an additional pointer to attach other objects to the World object?

Apouche

09-03-2007 03:33:46

Well, what I mean is that sometimes it can be useful to pass data through not only one or more body(ies) but to the whole world. For example you can, for everyframe, update an object in your class and use it to all your bodies. The function OgreNewt::Body::SetUserData is nice of course but the function OgreNewt::World::SetUserData serves different purposes.