Thread: Searchlight?
View Single Post
Old 08-19-12, 10:29 AM   #19
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by gap View Post
Yep, it worked TDW, thank you very much for your precious suggestions!

Let's wait for reports by other forum members now, just for making sure that the changes made don't have any undesired side effect. I will look for other equipments/armaments that may need the same fix in the meanwhile.
I'm pretty sure all the guns are missing boxes and spheres.
Let me tell you why you need the spheres as you were questioning that some posts ago. The game uses the spheres for broad collision test. If a collision test passes the broad test then it checks for collision against bounding boxes (a much more computational endeavor). If it passes that test then it checks every item's DMG_col node for collision (except if it has a weapon controller on it - then it uses the bounding box computed from the object). It's a 3 tiered approach for testing collisions. Testing for intersection with a sphere is a not so computationally intensive endeavor (it's cheap).

I see you like dabbling in the files and trying/testing things...I can give you something to keep you busy for awhile if you're interested. It involves testing some ideas dealing with the flooding model and zones (boxes)
TheDarkWraith is offline   Reply With Quote