Physics Simulation Forum

 

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: how to destroy
PostPosted: Thu Nov 12, 2009 11:29 pm 
Offline

Joined: Wed Oct 28, 2009 9:58 am
Posts: 5
Hi.

I'm trying to destroy (delete, remove from the world) dynamic body. How to do that?
(I tried RigidBody.destroy(), but it doesn't do the trick)

Thank you.


Top
 Profile  
 
 Post subject: Re: how to destroy
PostPosted: Wed Nov 18, 2009 11:25 pm 
Offline

Joined: Wed Oct 28, 2009 9:58 am
Posts: 5
Anybody?

Thank you


Top
 Profile  
 
 Post subject: Re: how to destroy
PostPosted: Sat Nov 21, 2009 10:32 pm 
Offline

Joined: Fri May 08, 2009 9:27 pm
Posts: 39
Hi,

Well, what is usually done is simply to call removeCollisionObject on your btDiscreteDynamicsWorld instance to remove the btRigidBody pointer from the physic world, and then to delete this btRigidBody pointer.

That`s what I do in my integration of bullet.

Also, take a look at the bullet demos, you will see plenty of example to help you figure those details.

Verbo


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group