Jump to content

  • Log In with Google      Sign In   
  • Create Account

too_many_stars

Member Since 29 May 2013
Offline Last Active Sep 27 2016 01:41 PM

Posts I've Made

In Topic: 2D circle and OBB moments of inertia

27 September 2016 - 01:40 PM

Hi Alvaro,

 

Thanks for your response, but I still don't understand. Let's say for simplicity, I make the mass of a circle equal to the area times a density value ie mass=(PI*r*r*)*density. Now, I am not sure how to get a proportionate moment of inertia value. The circle is always in world space.

 

Also, an OBB which is in local space, but gets transformed into world space every update step could have a mass of widht*height*density. How do I get a moment of inertia value?

 

Thanks,

 

Mike


In Topic: algorithmicly connecting a graph

22 June 2016 - 03:49 PM

Thanks ferrous and ApochPiQ, I understand it now.

 

I am beginning to think that ferrous has a good point, duplicate edges are not a big deal and might come in handy. Since it's my first time considering this problem, it did not occur to me.

 

Thanks again,

 

Mike


In Topic: algorithmicly connecting a graph

22 June 2016 - 02:47 PM

Thanks for the reply ApochPiQ,

 

My only concern with that is as the map gets bigger, the duplication checks are going to grow very quickly.


In Topic: call to new SomeClass() in func parameter

19 February 2016 - 05:05 PM

One more question that I have been wondering about.

 

Are there any practical differences between this...

void func(){
 ents.push_back(new Ent());
}

and this

void func(){
 Ent *ent=new Ent();
 ents.push_back(new Ent());

}

if in the destructor we delete all ents?

 

Thanks,

 

Mike


In Topic: call to new SomeClass() in func parameter

19 February 2016 - 03:57 PM

Thanks a bunch Josh. I will try that out.

 

Mike


PARTNERS