SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Silent Hunter 3 - 4 - 5 > SH5 Mods Workshop
Forget password? Reset here

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 07-31-12, 06:09 PM   #11
SilentOtto
Engineer
 
Join Date: Mar 2002
Location: BF79
Posts: 201
Downloads: 71
Uploads: 0
Default

Quote:
Originally Posted by TheDarkWraith View Post
I have the whole collision routine and it's supporting routines decoded. From those I can see everything that goes on during a collision. I'm now questioning my original evaluation of this. Even though I can see everything doesn't mean I understand the whys of it. Herein lies the problem:

the game calculates the distance from the zone (box) to the impact point. It then does a 'lazy' square root to get the square root of that distance. It then compares that result to the MinRadius and MaxRadius values. Now the MinRadius and MaxRadius values are scaled to game units (multiplied by 0.1 - i.e. MinRadius in sim file is 3 but in game it's 0.3). I can't for the life of me figure out why they are taking the square root of the distance
Hey TDW, this intrigued me (love numbers too!) so I did some magic googling and came out with something called Square Root Scaled Distance, related to... guess what? BLASTING! I found some formulae and long readings, but it seems on first read that it's used in blasting calculations, mining, etc. So it looks like that's the reason for the scaled distances and the sqr! Seems like blast effects diminish with sqr of distance, didn't get to the part of why the scaled distance but there it is!

These are a few examples of what I found, it's a bit late here, I can give it a second look tomorrow.

http://www.iseegoldenwest.org/tech.htm

http://www.sustainableaggregates.com...gandenergy.htm

http://www.sustainableaggregates.com...itoring_p2.htm
SilentOtto is offline   Reply With Quote
 


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 Off

Forum Jump


All times are GMT -5. The time now is 02:31 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Copyright © 1995- 2026 Subsim®
"Subsim" is a registered trademark, all rights reserved.