generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Buoyancy

Previous Thread :: Next Thread 
ZizZazZuz is not online. ZizZazZuz
Joined: 16 Jun 2008
Total Posts: 2743
26 Oct 2011 01:14 PM
Tell me if this is right. Trust me, I'm working toward buoyance.

Density = ((part:getMass() / part.Size.x) / part.Size.y) / part.Size.z
Report Abuse
grimm343 is not online. grimm343
Joined: 18 Sep 2008
Total Posts: 2796
26 Oct 2011 02:01 PM
D = M/V
Density = Mass/Volume

I am assuming that is what you are getting at.

Density = (part:getMass() / ((part.Size.x) * (part.Size.y) * (part.Size.y)))



Basically..
Mass = part:getMass()
Volume = (part.Size.x) * (part.Size.y) * (part.size.z)
Density = Mass/Volume
Report Abuse
SCARFACIAL is not online. SCARFACIAL
Joined: 28 Jan 2010
Total Posts: 7970
26 Oct 2011 02:02 PM
local volume = part.Size.x * part.Size.y * part.Size.z
local density = (part:getMass()/volume)

"I WILL GIVE YOU BACON." - Deadmau5
~Scarfacial
Report Abuse
SCARFACIAL is not online. SCARFACIAL
Joined: 28 Jan 2010
Total Posts: 7970
26 Oct 2011 02:03 PM
Latetoast >_<

"I WILL GIVE YOU BACON." - Deadmau5
~Scarfacial
Report Abuse
grimm343 is not online. grimm343
Joined: 18 Sep 2008
Total Posts: 2796
26 Oct 2011 02:03 PM
Lol. :s
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image