two non-exclusive ways to set planetary rotational speed - in planetinfo set rotation_speed to an absolute value or rotation_speed_factor to a multiplier for the current speed.

git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@723 127b21dd-08f5-0310-b4b7-95ae10353056
This commit is contained in:
Giles Williams 2006-08-11 07:18:08 +00:00
parent 90be524616
commit 167dab4745

View File

@ -573,7 +573,10 @@ void setUpSinTable()
// set speed of rotation
rotational_velocity = 0.005 * randf(); // 0.0 .. 0.005 avr 0.0025;
if ([planetinfo objectForKey:@"rotation_speed"])
rotational_velocity = [[planetinfo objectForKey:@"rotation_speed"] floatValue];
if ([planetinfo objectForKey:@"rotation_speed_factor"])
rotational_velocity *= [[planetinfo objectForKey:@"rotation_speed_factor"] floatValue];
// do atmosphere
//
[self setUniverse:uni];