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

This Month's Specials

Air Assault Task Force- Save $8.00
Bronze- Save $10.00

   







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

Reply
 
Thread Tools Display Modes
  #1  
Old December 9th, 2007, 02:21 AM
narf poit chez BOOM's Avatar

narf poit chez BOOM narf poit chez BOOM is offline
Shrapnel Fanatic
 
Join Date: Mar 2003
Location: CHEESE!
Posts: 10,009
Thanks: 0
Thanked 7 Times in 1 Post
narf poit chez BOOM is on a distinguished road
Default Re: XFile Creation and XFileClasses Effects

You're welcome.

Could be radians?...
__________________
If I only could remember half the things I'd forgot, that would be a lot of stuff, I think - I don't know; I forgot!
A* E* Se! Gd! $-- C-^- Ai** M-- S? Ss---- RA Pw? Fq Bb++@ Tcp? L++++
Some of my webcomics. I've got 400+ webcomics at Last count, some dead.
Sig updated to remove non-working links.
Reply With Quote
  #2  
Old December 9th, 2007, 03:14 AM

MasterChiToes MasterChiToes is offline
Corporal
 
Join Date: Sep 2006
Posts: 164
Thanks: 0
Thanked 0 Times in 0 Posts
MasterChiToes is on a distinguished road
Default Re: XFile Creation and XFileClasses Effects

Not even close to radians.
Planets unrotated are on their sides... the rotate X 50 flips them 180 degrees and the rotate z 25 makes them right side up (not sure why X isn't ignored and X set to -25).
Starting Rotate X := 50
Starting Rotate Y := 0
Starting Rotate Z := 25

Since the default rotation vector is 25 (90 degrees): I decided you could rotate X away from the vertical... and then add an X rotation vector that trigonometrically pairs with the Z rotation.

This solution works near perfectly... ~10 degree tilt
Starting Rotate X := 53
Starting Rotate Z := 25
Continual Rotation Vector X := 3
Continual Rotation Vector Z := 15.1

You can vary the direction of the tilt, messing with the signs and getting Y involved... However, I see no good way of distributing different tilts throughout the planet types.

The orbital plane for satellites is harder... I can't consistently predict whether the initial position is the low or high end of the incline.
But I got this one working for the above axial tilt:
Effect 2 Offset Position X := -19.65
Effect 2 Offset Position Z := 3.75
Effect 2 Rotate X := 0.000375
Effect 2 Rotate Z := 0.001965

If you like your trig, you can quickly figure out why 3 is paired with 15.1 and 19.65 is paired with 3.75.
Reply With Quote
Reply

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 05:26 AM.


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