list of moved objects?

heodox
Posts: 4
Joined: Fri Oct 17, 2008 3:42 pm

list of moved objects?

Post by heodox »

Is it possible to get some kind pointer list, pointing to all of the objects that were not in the sleep mode in current simulation step? One way is to loop through all objects on the scene and determine if they have been moved, but seems unnecessary and waste full (especially in a big world, where only local portion of objects are interacted with).
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: list of moved objects?

Post by Erwin Coumans »

It will be available for Bullet 2.73, soon.

See http://code.google.com/p/bullet/issues/detail?id=128 to track progress.

Thanks for the reminder,
Erwin
beaugard
Posts: 8
Joined: Sat Feb 16, 2008 5:12 pm

Re: list of moved objects?

Post by beaugard »

Currently I am doing this by using a custom RigidBody class (derived from btRigidBody) that registers/de-registers itself from a list when activated/deactivated. It's a simple hack if you want it running immediately.

Seems like a very reasonable thing to add to Bullet proper.
heodox
Posts: 4
Joined: Fri Oct 17, 2008 3:42 pm

Re: list of moved objects?

Post by heodox »

Erwin Coumans wrote:It will be available for Bullet 2.73, soon.

See http://code.google.com/p/bullet/issues/detail?id=128 to track progress.

Thanks for the reminder,
Erwin
Cool, looking forward to the new version :)