New ToeTag Feature

Soon. Heh, sorry! No, it should be done within the next few days assuming that things go as planned. It’s forced me to clean up my 3D code somewhat though and I’m kind of getting happy with how it works/looks now. I used to have a bunch of functions where I could ask a plane which side of it a vertex was sitting on. I’ve condensed that down to one now:


-(ESide) getVertexSide:(TVec3D*)InVector
{
float distance = [self getDistanceFrom:InVector];
float delta = fabs( distance - dist );

if( delta < = ON_PLANE_EPSILON )
{
return S_OnPlane;
}

if( (dist - ON_PLANE_EPSILON) < distance )
{
return S_Front;
}

return S_Behind;
}

Not very exciting, I know, but I haven’t posted anything in a few days and was feeling bad. :) I hope to be back soon with cool shots of a kick ass new feature!

I don’t know why WordPress sucks SO MUCH at posting source code but if anyone knows how to make that look nicer, I’m all ears. Unbelievable that it’s 2008 and it doesn’t “just work” yet.

3 Responses to “New ToeTag Feature”

  1. Spirit Says:

    There should be a “code” button. If not then put around the code. You would need to switch to the HTML view.

    I am sure that this is just an anti-Mac feature! ;p

  2. Spirit Says:

    err, “put <code></code>” around it. Seems like commenting in Wordpress is stupid too. :)

  3. Warren Says:

    That’s what I used. It helpfully removes all whitespace so you can’t indent. Beautiful! Because code is never indented so that makes perfect sense.

    *grumble*

Leave a Reply