Game Development Community

Polysoup player camera collision

by Ron Kirkland · in Torque Game Engine Advanced · 06/21/2008 (8:24 pm) · 2 replies

Ive noticed that my player camera drifts into the DTS models when I use a dts and polysoup rather than adjusting to and colliding with my dif interiors..

I looked ( but perhaps missed?) for a resource or fix, but haven't found anything yet..

Anyone addressed this?

#1
06/23/2008 (3:43 am)
Was this just a "it's like that and deal with it" thing... ?
#2
06/23/2008 (10:09 am)
Assuming a stock Camera... code in Camera::validateEyePoint() looks for collisions with these types:
U32 mask = AtlasObjectType |
                 TerrainObjectType |
                 InteriorObjectType |
                 WaterObjectType |
                 StaticShapeObjectType |
                 PlayerObjectType |
                 ItemObjectType |
                 VehicleObjectType;
None of these match with a TSStatic which is what a polysoup/DTS is. You could try adding StaticTSObjectType to the list.