Jump to content

  • Log In with Google      Sign In   
  • Create Account

Bullet Physics object combine


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 CastorX   Members   -  Reputation: 132

Like
0Likes
Like

Posted 19 January 2013 - 07:46 AM

Hi everyone,

 

I'm using bullet engine as my physical engine in my game. After solving many problems gathering a lot of information (even from GD.NET) I have another problem. I want to "weld" two rigid bodies. For example My model is a bed. It consists of the wooden frame and the mattress. But I want to handle it as one DYNAMIC object with different properties like friction of wooden parts and the mattress and different collision object for them. The above example might not be the best, but I want to do something like that.

Thanks in advance!



Sponsor:

#2 Krohm   Crossbones+   -  Reputation: 3119

Like
0Likes
Like

Posted 21 January 2013 - 02:00 AM

I'm afraid you cannot do that "natively".

I guess it's not going to work with compound shapes either.

My best bet is that you'll have to define as many rigid bodies as needed (by different properties). The mattress would probably have to be a soft body... and then join them by using the hinge constraint I guess.

Alternatively, using a polygon soup with a material callback might do the trick, but I hate polysoups with passion so I never looked into them in detail.

 

Constraints are really the only way to make two objects appear somewhat connected. They are in no way "welded". In no way you can ask a rigid body to have different friction for different parts when working with the "standard" shapes (trisoups are not standard shapes).



#3 CastorX   Members   -  Reputation: 132

Like
0Likes
Like

Posted 21 January 2013 - 03:37 AM

Thanks for the reply. I think I wil try to do that with a hinge and check if it works weel enough.






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS