.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
  #13  
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
 

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 12:46 AM.


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