Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: gevatter Lars on March 19, 2007, 06:48:18 am

Title: Colision detection changable?
Post by: gevatter Lars on March 19, 2007, 06:48:18 am
Just a short question. Is it possible to change the size of these colision detection boxes?
Or to get FS to make them smaller via a little code change?
Title: Re: Colision detection changable?
Post by: WMCoolmon on March 19, 2007, 12:46:25 pm
To my knowledge FS2_Open uses a collision system based on

1) Radius
2) Bounding box (If object isn't a weapon)
3) Actual model (If object isn't a weapon)

If an object 'passes' one level, it simply goes on to the next level. If a model is properly set up, I don't think there is a way to reduce the collision detection boxes without making certain parts of the model un-collideable.

Bombs do use an exaggerated 'radius' collision system, so it's easier to shoot them down.
Title: Re: Colision detection changable?
Post by: gevatter Lars on March 19, 2007, 05:43:53 pm
How is the bounding box created? Is their maybe a fix value that can be changed (in the code) to make these smaller/closer to the hull?
Other thing is...is their a way to pass point 1 and 2 and get the game to use point 3 for certain ships?
The problem is that in WC most caps have flytrough bays for landing and starting. If the box is to big you get a collision even when their would be enough room for the fighter to fit in.
Title: Re: Colision detection changable?
Post by: WMCoolmon on March 19, 2007, 05:46:58 pm
You'd have to ask Bobb about that.
Title: Re: Colision detection changable?
Post by: Flipside on March 19, 2007, 07:08:31 pm
As far as I know, that shouldn't happen with PCS conversions?