ShiVa3D
Dynamics Compound Object Mass
Shaders, Level design, Sound design, Special effectsDynamics Compound Object Mass
by 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?
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?
Re: Dynamics Compound Object Mass
by 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?
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?
Re: Dynamics Compound Object Mass
by 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.
the bullet plugin demoed here recently supports compound objects in the latest v0.02, maybe it's worth a look.
Re: Dynamics Compound Object Mass
by makkar » 26 Sep 2011, 21:42
No, the Editor will also use the last given parameter for all the compound objects, globally.
5 posts
• Page 1 of 1

