hmmm bug in trigger.cpp.....
by Vince Gee · in Torque 3D Professional · 04/16/2013 (6:00 am) · 1 replies
Ok, so I'm working through some final stuff for dnt and happened across the Polyhedron.
Can someone explain why...
When it serializes it writes the data out as
Yet, when it reads it back in it uses
Thus swaping vec[1] with vect[2]?
Can someone explain why...
When it serializes it writes the data out as
char* retBuf = Con::getReturnBuffer(1024);
dSprintf(retBuf, 1023, "%7.7f %7.7f %7.7f %7.7f %7.7f %7.7f %7.7f %7.7f %7.7f %7.7f %7.7f %7.7f",
origin.x, origin.y, origin.z,
vecs[0].x, vecs[0].y, vecs[0].z,
vecs[2].x, vecs[2].y, vecs[2].z,
vecs[1].x, vecs[1].y, vecs[1].z);
return retBuf;
}Yet, when it reads it back in it uses
U32 numArgs = dSscanf(argv[0], "%g %g %g %g %g %g %g %g %g %g %g %g",
&origin.x, &origin.y, &origin.z,
&vecs[0].x, &vecs[0].y, &vecs[0].z,
&vecs[1].x, &vecs[1].y, &vecs[1].z,
&vecs[2].x, &vecs[2].y, &vecs[2].z);Thus swaping vec[1] with vect[2]?
About the author
www.winterleafentertainment.com
Associate David Wyand
Gnometech Inc.
So the question is: Does the reading and writing of a trigger's polyhedron actually change the polyhedron's winding order? If the answer is "yes" then it is indeed a bug and it would be great if you could submit a fix in a Pull Request.
- Dave