A place to discuss everything related to Newton Dynamics.
Moderators: Sascha Willems, walaber
by JulBaxter » Wed Mar 10, 2010 1:06 pm
What about density settings in GD SDK ?
It would be helpful to set Body's mass setting with density :
NewtonSetDensity( NewtonBody* body, dFloat Density )
{
Mass = Density * Volume;
}
-
JulBaxter
-
- Posts: 23
- Joined: Wed Mar 10, 2010 6:56 am
by Julio Jerez » Wed Mar 10, 2010 2:11 pm
Althought, Dentity is a prtical measure to use anaylitically, in pratice it is not usefull because most bodies do not really have a uniform denstity.
However if you wna to use density you can use NewtonGetVolume function to set the Mass using a density.
-
Julio Jerez
- Moderator

-
- Posts: 12426
- Joined: Sun Sep 14, 2003 2:18 pm
- Location: Los Angeles
-
by JernejL » Wed Mar 10, 2010 2:37 pm
Use NewtonConvexCollisionCalculateVolume to calculate volume of a object.
-

JernejL
-
- Posts: 1587
- Joined: Mon Dec 06, 2004 2:00 pm
- Location: Slovenia
-
by JulBaxter » Fri Mar 12, 2010 1:00 pm
Ok, thank you for answering.
-
JulBaxter
-
- Posts: 23
- Joined: Wed Mar 10, 2010 6:56 am
Return to General Discussion
Who is online
Users browsing this forum: No registered users and 6 guests