On Wed, 12 Apr 2006 12:18:13 +0200 Melchior FRANZ wrote: > > * Chris Metzler -- Wednesday 12 April 2006 04:45: > > I would naively expect the angle that you give the sign to correspond > > to the orientation of a normal either going out of the sign face or > > going into the sign face. > > Oh, you are right about that. The heading should be rotated by 90 > degree. I'll change that. But your "non-constant offset" problem is > probably due to the fact that the heading in *.stg files is > counter-clockwise. And it's just awkward, but not a bug.
Heh, this is embarassing. First off, you're right, I'd forgotten about the whole counter-clockwise thing. I did know that at one time, but it's been too long since I'd worked with signs in the past. But what's really embarassing is that the orientation of the sign models I'd made before was such that there was a 90-degree offset just as yours have. In other words, the code I originally had for this: forward_sign_heading = 90.0 - runway_heading if forward_sign_heading < 0.00 : forward_sign_heading = forward_sign_heading + 360.0 reverse_sign_heading = forward_sign_heading + 180.0 if reverse_sign_heading >= 360.0 : reverse_sign_heading = reverse_sign_heading - 360.0 would have worked just fine if I'd left it alone. But I cut it out, forgetting the reverse rotation and not expecting the similar 90-degree offset. Yeesh. -c -- Chris Metzler [EMAIL PROTECTED] (remove "snip-me." to email) "As a child I understood how to give; I have forgotten this grace since I have become civilized." - Chief Luther Standing Bear
signature.asc
Description: PGP signature