intersection callback

New Message Reply Date view Thread view Subject view Author view

ALFREDO (fred++at++vsl.ist.ucf.edu)
Tue, 27 Dec 94 21:06:43 -0500


Hi,
I am trying to implement an intersection callback function (using the
pfSegsIsectNode function) to avoid jumping on bridges, trees or whatever
while driving on my terrain.

  1) In the definition of the pfSegSet structure, there is a 'void* userData'.
     How can I get a pointer to it in my callback function ?
  2) I am doing several intersections at the same time. The first segment
     is for this ground collision problem. I thought that I could use a call
     to pfQueryHit with a PFQHIT_SEGNUM type, but it seems to return pointer
     values instead of an index number -> is it what I should get? is it a
     bug or am i stupid ? (please, don't answer directly to this last question)

Thank you for any comment, and happy new year!!!!

         ____________________
        / \
        ! TAZ for !
        ! PRESIDENT !
        \____________________/
                 ! !
                 ! !
                 L_ !
                / _)! "%++at++&*&*&(*()*^(()^(% ", he said
               / /__L
         _____/ (____) Al Fredo
                (____)
         _____ (____)
              \_(____)
                 ! !
                 ! !
                 \__/


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:50:46 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.