Re: [info-performer] May I control FLT file with hierarchy structure

New Message Reply Date view Thread view Subject view Author view

From: Ulrich Hertlein (u.hertlein++at++sandbox.de)
Date: 10/08/2002 02:08:57


Hi,

Quoting ³¯®a¥Í(Archer Chen) <archerc++at++hitrontech.com>:
> int
> preAppFunc(pfTraverser *trav, void *data)
> {
> static float angle2 = 0.0f;
> pfDCS *tire_dcs;
>...
> tire_dcs = (pfDCS*)pfFindNode(pfGetTravNode(trav),
          "tire", pfGetGroupClassType());
>
> pfDCSRot(tire_dcs, angle2*2, 0, 0);

This could be the problem: you're searching for (and finding) a pfGroup object
but try to treat it as a pfDCS which won't work. You have to name and search for
the DCS that controls your tire or find the group and attach it to a manually
created pfDCS.

-Ulrich


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Tue Oct 08 2002 - 02:11:17 PDT

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