Game Development Community

Weight and Size calc for a......

by VcDeveloper · in Technical Issues · 12/10/2008 (8:19 pm) · 2 replies

I want to apply Mass to a character based on Weight and Size. For instance if a person is 6"2' at 220lbs. Is there a calc that would give me Mass based on this?

Because I don't want all my enemy's to have the same Physics characteristics. You know, some weak, strong, heavy, light etc..... ,because I want different responses based on the Mass of the weapon used.

Also, is the a guide anywhere that I can use for setting the Physics for certian assets like rocks, trees, cars, etc...?

#1
12/11/2008 (11:53 am)
M = W/g, where m is mass in kilograms, W is the weight in newtons, and g is the acceleration of gravity, which is 9.8 m/s2.

so you need to convert your weight to newtons using this formula
float weight = 220(1/.2248);

that will give you the weight in newtons

now assign gravity to g
double g = 9.8;

calculate

mass = weight/g;

there you go :)
hope this helps.
#2
12/11/2008 (1:06 pm)
Thanks T, I appreciated!...