Camera don't collide with single-side mesh?
by Nabarro · in Torque Game Engine · 05/29/2009 (10:03 pm) · 1 replies
Hello, everybody,
I made one single-side mesh ground, but camera doesn't collide with the ground effectively. The camera can easily go below the single-mesh ground.
In ShapeBase.cpp:void ShapeBase::getCameraTransform(F32* pos,MatrixF* mat), it seems that it always gets failed with "if (mContainer->castRay(sp, ep,(0xFFFFFFFF & ~(WaterObjectType |GameBaseObjectType |DefaultObjectType)),&collision) == true)"
How to fix the problem? May anybody give any tips?
Thanks,
I made one single-side mesh ground, but camera doesn't collide with the ground effectively. The camera can easily go below the single-mesh ground.
In ShapeBase.cpp:void ShapeBase::getCameraTransform(F32* pos,MatrixF* mat), it seems that it always gets failed with "if (mContainer->castRay(sp, ep,(0xFFFFFFFF & ~(WaterObjectType |GameBaseObjectType |DefaultObjectType)),&collision) == true)"
How to fix the problem? May anybody give any tips?
Thanks,
Torque Owner Daniel Buckmaster
T3D Steering Committee