.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

Reply
 
Thread Tools Display Modes
  #1  
Old February 19th, 2004, 09:21 AM

Member 4148 Member 4148 is offline
Private
 
Join Date: Jun 2003
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Member 4148 is on a distinguished road
Default Re: OT - math question.

Quote:
Originally posted by Imperator Fyron:
y position is not height.
can be - it depends on coordinate system used
there is no particular reason why the center of the sphere has to be the 0 point - he wanted the answer from the bottom of the sphere after all
likewise there is no particular reason why z has to be up, y back, and x right - reducing to circle makes y up using cartesian so it works as height
Quote:
Originally posted by Imperator Fyron:
Not sure what I was thinking with arc length, but you definitely need the angles associated with the vector from the starting point to the ending point. The relative height is just the z component of that vector.

Treating the movement as along a circle only works if the only component that is changing is the z component. If x or y change (but not both), then it is no longer a circle, but an ellipse.
you forgetting - he constraining himself to move on surface of sphere - any 'straight line' path constrained so makes for a segment of a perfect circle from some perspective - if you choose that perspective, it reduces to a circle just fine
also, narf specified direction of travel - to the right - which pretty much forces a circle sgement anyway
__________________
<img src=http://www.danasoft.com/sig/ alt= - /]
Reply With Quote
  #2  
Old February 19th, 2004, 09:54 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: OT - math question.

x is left/right, y is up/down, z is not used.

it's a random straight line x movement and i need the y position on the sphere that a line straight up would hit.

sorry for not being clear the first time. i guess i need to reread mathamatical Posts at least three times.
__________________
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
  #3  
Old February 19th, 2004, 10:03 AM

Member 4148 Member 4148 is offline
Private
 
Join Date: Jun 2003
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Member 4148 is on a distinguished road
Default Re: OT - math question.

Quote:
Originally posted by narf poit chez BOOM:
x is left/right, y is up/down, z is not used.

it's a random straight line x movement and i need the y position on the sphere that a line straight up would hit.

sorry for not being clear the first time. i guess i need to reread mathamatical Posts at least three times.
Oh. That's easier -
need: r: radius of sphere
d: distance traveled
want: h: height above bottom edge of sphere

edit: small mistake on co-ordinate system - fixed
h = r - sqrt(r - d^2)

notes:
not defined for |d| > r
above applies for lower edge
upper edge is h = r + sqrt(r - d^2)

[ February 19, 2004, 08:08: Message edited by: Member 4148 ]
__________________
<img src=http://www.danasoft.com/sig/ alt= - /]
Reply With Quote
  #4  
Old February 19th, 2004, 10:39 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: OT - math question.

and if your wondering what you worked so hard on , think big bowling ball. no, bigger than that.

thanks, guys.

'coincedently', there's a new hazard in my game.
__________________
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
  #5  
Old February 19th, 2004, 05:37 PM
Cipher7071's Avatar

Cipher7071 Cipher7071 is offline
Second Lieutenant
 
Join Date: Nov 2003
Posts: 482
Thanks: 1
Thanked 0 Times in 0 Posts
Cipher7071 is on a distinguished road
Default Re: OT - math question.

Attack of the killer bowling balls...
Run for your lives!!!
....aaaarrrrrrrrrggggh....splat !


Incidentally, if the distance traveled is very small compared to the size of the ball, then you can probably make do with an approximation. In that case, the pythagorean theorum or the tangent function will probably do the trick.
__________________
The great tragedy of science...the slaying of a beautiful hypothesis by an ugly fact. (T. H. Huxley)
Reply With Quote
  #6  
Old February 19th, 2004, 06:09 PM
Fyron's Avatar

Fyron Fyron is offline
Shrapnel Fanatic
 
Join Date: Jul 2001
Location: Southern CA, USA
Posts: 18,394
Thanks: 0
Thanked 12 Times in 10 Posts
Fyron is an unknown quantity at this point
Default Re: OT - math question.

Quote:
Originally posted by Member 4148:
quote:
Originally posted by Imperator Fyron:
y position is not height.
can be - it depends on coordinate system used
there is no particular reason why the center of the sphere has to be the 0 point - he wanted the answer from the bottom of the sphere after all
likewise there is no particular reason why z has to be up, y back, and x right - reducing to circle makes y up using cartesian so it works as height

No, it doesn't have to be, but it does certainly help if you either stick to a standard coordinate system or define the one you are working in.
__________________
It's not whether you win or lose that counts: it's how much pain you inflict along the way.
--- SpaceEmpires.net --- RSS --- SEnet ModWorks --- SEIV Modding 101 Tutorial
--- Join us in the #SpaceEmpires IRC channel on the Freenode IRC network.
--- Due to restrictively low sig limits, you must visit this link to view the rest of my signature.
Reply With Quote
  #7  
Old February 19th, 2004, 09:05 PM
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: OT - math question.

it's not the distance traveled - they're so big they flatten things.
__________________
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
Reply

Bookmarks


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 02:55 AM.


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