Re: [info-performer] pfNodeTravMask

Date view Thread view Subject view Author view

From: Christian Beaudoin (Christian.Beaudoin++at++irdpq.qc.ca)
Date: 08/09/2004 08:45:00


Hello,

This worked, but now I am wondering if collision detecion works with
nodes other than the subtype "pfGeode". Can it work with a pfNode got
from pfdLoadFile ?

I guess that yes because the intersection method applies on pfNode, not
on pfGeode, but all the examples I saw were with pfGeode and in my case
it don't work.

   Christian

Allan Schaffer wrote:

>Christian Beaudoin wrote:
>
>
>>But I use the C++ API instead of the c API.
>>c-1020 CC: ERROR File = ModMotionControl_IRDPQ.cpp, Line = 1086
>> The identifier "pfNodeTravMask" is undefined.
>>
>> pfNodeTravMask( object.p_DCS, PFTRAV_ISECT, 1,
>>PFTRAV_SELF, PF_SET);
>>
>>
>
>That function (pfNodeTravMask) is only defined for the C API. You want:
>
> void pfNode::setTravMask(int which, uint mask, int setMode, int bitOp);
>
>ie
> object.p_DCS->setTravMask(PFTRAV_ISECT, 1, PFTRAV_SELF, PF_SET);
>
>Allan
>
>


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Mon Aug 09 2004 - 10:33:39 PDT