Items that collide with meshRoads cause warnings (solved)
by Nils Eikelenboom · in Torque 3D Professional · 02/19/2014 (7:30 am) · 3 replies
The items in my (non-PhysX) missions that are placed on meshRoads will cause a huge amounts of warnings in the console:
MeshRoad::collideBox() - not yet implemented!
So I guess something is not right in the way the items collide with meshRoads.
The warning comes from this in meshRoad.cpp:
I could of course just comment out the warning, but isn't there a bit more elegant way to solve this issue?
MeshRoad::collideBox() - not yet implemented!
So I guess something is not right in the way the items collide with meshRoads.
The warning comes from this in meshRoad.cpp:
bool MeshRoad::collideBox(const Point3F &start, const Point3F &end, RayInfo* info)
{
Con::warnf( "MeshRoad::collideBox() - not yet implemented!" );
return Parent::collideBox( start, end, info );
}I could of course just comment out the warning, but isn't there a bit more elegant way to solve this issue?
#2
The actual collision works (like you can expect from meshRoads;). I want to be sure if we're not wasting anything with this, before commenting out that warning.
02/19/2014 (6:58 pm)
Not sure yet, but I thought that MeshRoad collision is different from others like terrain etc. The collision mesh (box) for items is generated dynamically. Perhaps do these 2 don't work well together, and castRay won't work. Need to dive in a little bit more.The actual collision works (like you can expect from meshRoads;). I want to be sure if we're not wasting anything with this, before commenting out that warning.
#3
and convexShape.cpp does:
I'll draw the conclusion that I can safely do this in meshRoad.cpp:
Thanks for your support @Daniel :)
02/19/2014 (9:46 pm)
While forestCollision.cpp has:bool Forest::collideBox( const Point3F &start, const Point3F &end, RayInfo *outInfo )
{
//Con::warnf( "Forest::collideBox() - not yet implemented!" );
return Parent::collideBox( start, end, outInfo );
}and convexShape.cpp does:
bool ConvexShape::collideBox( const Point3F &start, const Point3F &end, RayInfo *info )
{
return Parent::collideBox( start, end, info );
}I'll draw the conclusion that I can safely do this in meshRoad.cpp:
bool MeshRoad::collideBox(const Point3F &start, const Point3F &end, RayInfo* info)
{
// Con::warnf( "MeshRoad::collideBox() - not yet implemented!" );
return Parent::collideBox( start, end, info );
}Thanks for your support @Daniel :)
Torque Owner Daniel Buckmaster
T3D Steering Committee