Home Tutorials Download Beta Store Forum Documentation KnowledgeBase Wiki Blog

ShiVa3D

Return to Creation

Dynamics Compound Object Mass

Shaders, Level design, Sound design, Special effects

Dynamics Compound Object Mass

Postby makkar » 26 Sep 2011, 10:41

Hi,

I didn't find any functions to set the mass and other properties of a particular element of a compound dynamic object. Like having the metallic head of a hammer be heavier than the handle.

The dynamics.setMass function will handle the whole compound as universally having the same mass.

Can this be done with the current Shiva implementation of ODE?
User avatar
makkar
Platinum Boarder
Platinum Boarder
 
Posts: 1514

Re: Dynamics Compound Object Mass

Postby FF.Fan » 26 Sep 2011, 11:27

I'm afraid not :(
User avatar
FF.Fan
Gold Boarder
Gold Boarder
 
Posts: 270
Location: France

Re: Dynamics Compound Object Mass

Postby makkar » 26 Sep 2011, 18:46

Then what would be the solution with the current ODE implementation?

Make two separate dynamic objects, create a hinge joint between them and limit the rotation angles to 0?

Or is there a better way for establishing rigid connections?
User avatar
makkar
Platinum Boarder
Platinum Boarder
 
Posts: 1514

Re: Dynamics Compound Object Mass

Postby broozar » 26 Sep 2011, 19:13

you can apply different mass values in the editor for each component directly, though i cannot currently test if it makes any difference in the simulation.
the bullet plugin demoed here recently supports compound objects in the latest v0.02, maybe it's worth a look.
User avatar
broozar
Platinum Boarder
Platinum Boarder
 
Posts: 3486
Location: Berlin - Germany

Re: Dynamics Compound Object Mass

Postby makkar » 26 Sep 2011, 21:42

No, the Editor will also use the last given parameter for all the compound objects, globally.
User avatar
makkar
Platinum Boarder
Platinum Boarder
 
Posts: 1514


Return to Creation