Calculating Moment Of Intertia

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

Calculating Moment Of Intertia

Postby lesPaul456 » Thu Jan 07, 2010 3:15 pm

Is there an easy way for me to calculate the moment of inertia through code? Right now I have no idea of how I should be doing this.

Thanks!
User avatar
lesPaul456
 
Posts: 17
Joined: Thu Dec 31, 2009 9:24 pm

Re: Calculating Moment Of Intertia

Postby PJani » Fri Jan 08, 2010 8:58 am

| i7-5930k@4.2Ghz, EVGA 980Ti FTW, 32GB RAM@3000 |
| Dell XPS 13 9370, i7-8550U, 16GB RAM |
| Ogre 1.7.4 | VC++ 9 | custom OgreNewt, Newton 300 |
| C/C++, C# |
User avatar
PJani
 
Posts: 448
Joined: Mon Feb 02, 2009 7:18 pm
Location: Slovenia

Re: Calculating Moment Of Intertia

Postby JernejL » Fri Jan 08, 2010 9:08 am



Try just NewtonConvexCollisionCalculateInertialMatrix, forum automaticly turns newton function names into links.
Help improving the Newton Game Dynamics WIKI
User avatar
JernejL
 
Posts: 1587
Joined: Mon Dec 06, 2004 2:00 pm
Location: Slovenia

Re: Calculating Moment Of Intertia

Postby PJani » Fri Jan 08, 2010 10:25 am

Delfi wrote:


Try just NewtonConvexCollisionCalculateInertialMatrix, forum automaticly turns newton function names into links.


Didn't know that, thx.

Anyway i forgot to say you have to multiply result returned by this function by its mass...
| i7-5930k@4.2Ghz, EVGA 980Ti FTW, 32GB RAM@3000 |
| Dell XPS 13 9370, i7-8550U, 16GB RAM |
| Ogre 1.7.4 | VC++ 9 | custom OgreNewt, Newton 300 |
| C/C++, C# |
User avatar
PJani
 
Posts: 448
Joined: Mon Feb 02, 2009 7:18 pm
Location: Slovenia

Re: Calculating Moment Of Intertia

Postby lesPaul456 » Mon Jan 11, 2010 1:28 pm

Thanks guys!
User avatar
lesPaul456
 
Posts: 17
Joined: Thu Dec 31, 2009 9:24 pm


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 408 guests

cron