Chris Elliott (Chris.P.Elliott++at++lmco.com)
Fri, 03 Sep 1999 10:10:56 -0400
NEW
pfDCSTrans(terrainDCS, -ownship_x, -ownship_y, -ownship_z);
pfChanView(channel, zero.xyz, ownship.hpr);
pfDCSTrans(otherDCS, (float) (x - ownship_x), (float) (y - ownship_y),
(float) (z - ownship_z));
pfDCSRot(otherDCS, otherYaw, otherPitch, otherRoll);
pfuCollideGGrnd(&zero, terrainDCS, zpr);
OLD
pfChanView(channel, ownship.xyz, ownship.hpr);
pfDCSTrans(otherDCS, (float) (x), (float) (y), (float) (z));
pfDCSRot(otherDCS, otherYaw, otherPitch, otherRoll);
pfuCollideGGrnd(&ownship, terrain, zpr);
It may be of interest that I have a channel traversal function set using
pfChanTravFunc(channel, PFTRAV_DRAW, DrawFunc);
void DrawFunc(pfChannel *chan, void *nothing) {
pfClearChan(chan);
pfDraw();
if (theCallback != NULL) {
theCallback();
}
}
-- Chris Elliott Chris.P.Elliott++at++lmco.com
This archive was generated by hypermail 2.0b2 on Fri Sep 03 1999 - 07:09:58 PDT