Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (AndrewAMD, TipmyPip), 12,420 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Mass-calculation #15804
06/13/03 13:22
06/13/03 13:22
Joined: Oct 2000
Posts: 1,543
Germany
A
Alexander Esslinger Offline OP
Senior Developer
Alexander Esslinger  Offline OP
Senior Developer
A

Joined: Oct 2000
Posts: 1,543
Germany
Does the phent_setmass()-function use this formular to calculate the mass of a box?:
code:
mass_amount = mass*height*width*length; //mass is a parameter of phent_setmass()



Re: Mass-calculation #15805
06/20/03 03:35
06/20/03 03:35

A
Anonymous
Unregistered
Anonymous
Unregistered
A



The parameter you specify with phent_setmass is total mass, not density. I.e. A6 solves
code:
mass = density*height*width*length;

with mass being your parameter and density the unknown.

Re: Mass-calculation #15806
06/21/03 00:55
06/21/03 00:55
Joined: Aug 2001
Posts: 74
Louisiana, USA
kelly_b_c Offline
Junior Member
kelly_b_c  Offline
Junior Member

Joined: Aug 2001
Posts: 74
Louisiana, USA
when in doubt about a function, I always check the units.

For instance, your formula:

mass_amount = mass*height*width*length;

would produce:

mass_amount = kilograms*meters*meters*meters

or

mass_amount = kg*m^3 which is not a unit of mass

just something to always check when you are not sure. Unit analysis is a very powerful thing.


Moderated by  HeelX, Spirit 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1