Game Development Community

Collision detection

by Andrew Brady · in Constructor · 04/25/2008 (7:47 am) · 10 replies

Hello,

I've been trying to find a way (maybe I've overlooked it) to turn collision detection off of an entire dif. I have several separate difs in some scenes which do not require collisions.. they are more background and can never be reached by a player. I could make these items out of models but if there is a way to turn the detection off, there would be no need (collision detection calculations wouldn't take place thus speeding things up altogether).

Any help would be appreciated. Thanks in advance.



LK

#1
04/26/2008 (6:23 pm)
Anybody? I found some things afew years old but nothing new.
#2
04/27/2008 (5:39 pm)
I'm also interested in this, either it can be done in constructor or once exported in TGE(A).
#3
04/27/2008 (6:44 pm)
I don't think it's necessary. If the objects are far off, they are probably in a different bin and won't be checked for collisions anyway. However, if you don't need collisions, dts is probably the way to go because it's easier to create complex models.

My dad says "Premature optimization is the root of all evil."
#4
04/27/2008 (8:44 pm)
It's as necessary as one see's it's usefulness I guess. The buildings/structures/etc are both near and far and in my case, it would be very beneficial. True, I could make them out of dts's, but why complicate things with 15 extra steps if all I need to do is check a setting or simply work with what I already have. Thus, my perceived need to turn off collision detection. Why have it slowing things down if the player can never reach them.

Still in need of any assistance.

Thanks guys,


LK
#5
04/28/2008 (4:42 pm)
Like Dan said, though - it's a perceived problem, not a real issue. Those models won't be used for collision detection since they are far away, there will be no performance gain. His dad is correct - don't optimize things before you know they are an issue. If you do, you will never get done.
#6
04/28/2008 (5:27 pm)
Jaimi, thank you for your input, but none of that is accurate in this situation. Most of the items I am referring to are near NOT far (I do have some that are far though). and they ARE using collision detection or I wouldn't be asking here for another avenue.

I understand people come through here and ask questions without checking things out first, but that is not the case here. To save everyone alot of time, I am not asking for conjecture on any of these things.. just if anyone knows how or knows of a link where it is/was discussed.
#7
04/28/2008 (6:15 pm)
You might want to run the profiler for a while and see if Player_PhysicsSection shows up high on the list.
#9
04/28/2008 (7:16 pm)
Sorry, my bad. I misunderstood based off the "more background and can never be reached by the player". It gave me an inner picture of difs sitting far away.
#10
04/28/2008 (7:38 pm)
Thank you Kirk, that will really help.

Jaimi, no worries. I see you in here helping all the time, so if your response to one or two posts is slightly off, I think your covered mate. And as always, Thanks, and thanks to everyone else for your time and efforts.


LK