.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $5.00

   







Go Back   .com.unity Forums > Shrapnel Community > Space Empires: IV & V

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #24  
Old August 27th, 2003, 03:06 PM
dogscoff's Avatar

dogscoff dogscoff is offline
General
 
Join Date: Mar 2001
Location: UK
Posts: 4,245
Thanks: 0
Thanked 0 Times in 0 Posts
dogscoff is on a distinguished road
Default Re: Calculating a planet\'s mass & gravitational pull

Yeah, I thought it looked ok, but all the numbers come out wrong.
Here's the line from the code. Something just has to be wrong with it, but I'll be stuffed if I can figure it out.

cells[radius].value=Math.pow(((cells[gravity].value/GRAV)/cells[mass].value),1/3)/1000;

I've also just put in an alert statement to display the output of the same calculation (in case the number was getting jiggered about elsewhere) but apparently it isn't.

[ August 27, 2003, 14:11: Message edited by: dogscoff ]
Reply With Quote
 

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 01:47 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.