Game Development Community

Polysoup, LOD and Collision for an AI

by Steve Acaster · in Torque Game Engine Advanced · 04/15/2009 (4:19 pm) · 2 replies

Idiot-proof explanation required.

Say I have a polysouped house with 2 storeys.

I LOD the house by removing the interior, thus no inside floors.

Is the polysoup collision updated to the new mesh of the LOD?

If I have an AIplayer inside the house on the upper floor, and the LODing removes the interior of that house (from the player's view), will the AI fall down now that the LODed model does not have that interior floor?

Or will they stay at their position, thus using the original (LOD_0) model's collision?

#1
04/15/2009 (4:32 pm)
@Steve - Good question my assumption would be that as Collision is done Server side that polysoup would use a mesh generated from LOD_0 of the models, rendering objects at different LODS is a client side function and therefore wouldn't matter that you've removed interior floors.


#2
04/15/2009 (5:12 pm)
And the answer is ... yes it does. It appears it uses LOD_0 for all collision. I've had bots running over non-rendering surfaces no problem.

As soon as hit post, I thought, "hang on, why don't I just do a test?"