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
This archive was generated by hypermail 2b29 : Tue Oct 08 2002 - 02:11:17 PDT