Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 1,268 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 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 | chip programmers | 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