Building collision problems
by Diego Perez · in Torque 3D Professional · 03/10/2010 (3:01 am) · 0 replies
Hi all,
I am experiencing some problems with 3d buildings in Torque 3D (concretely, I am using these ones: www.dexsoft-games.com/models/industrial1.html and www.dexsoft-games.com/models/oriental.html, I saw them in other thread in this forum). I have them put in the level with "Visible mesh" collision type.
I can navigate through them without problems, going stairs up and down, moving between columns, etc. I am also using rays for LOS tests (mask: StaticTSObjectType) and I am experiencing problems with them, when I am outside the boundaries of the buildings.
I think I can explain myself better with a sample image:
img202.imageshack.us/i/problemsample.jpg/
In this picture, polygons in blue are those that I can not see ("I am" the bot at the bottom of the image). I can go from my position to 'A' without any collisions. However, Any ray I try to launch from my position to A collides with the building at the point B. I am sending the ray from my position (+1 in vertical axis) to the center of the polygon (+1 in vertical axis too), so I am pretty sure that my rays are not colliding with the floor. Indeed, I have debugged those rays, and the object collision IS the building.
Any hints about what could be the problem? The collision mask? Maybe the collision type of the building?
Thanks a lot
Diego.
I am experiencing some problems with 3d buildings in Torque 3D (concretely, I am using these ones: www.dexsoft-games.com/models/industrial1.html and www.dexsoft-games.com/models/oriental.html, I saw them in other thread in this forum). I have them put in the level with "Visible mesh" collision type.
I can navigate through them without problems, going stairs up and down, moving between columns, etc. I am also using rays for LOS tests (mask: StaticTSObjectType) and I am experiencing problems with them, when I am outside the boundaries of the buildings.
I think I can explain myself better with a sample image:
img202.imageshack.us/i/problemsample.jpg/
In this picture, polygons in blue are those that I can not see ("I am" the bot at the bottom of the image). I can go from my position to 'A' without any collisions. However, Any ray I try to launch from my position to A collides with the building at the point B. I am sending the ray from my position (+1 in vertical axis) to the center of the polygon (+1 in vertical axis too), so I am pretty sure that my rays are not colliding with the floor. Indeed, I have debugged those rays, and the object collision IS the building.
Any hints about what could be the problem? The collision mask? Maybe the collision type of the building?
Thanks a lot
Diego.
About the author