pfuxformerLimits()

New Message Reply Date view Thread view Subject view Author view

Satish K. Annapuneddy (satish++at++chaos.idec.sdl.usu.edu)
Mon, 30 Jan 1995 18:45:38 -0700 (MST)


Hi,

I am new to performer and I am trying to figure out a few things.
Specifically, I was looking at perfly and the DRIVE mode. In perfly.c,
in the function xformerMode(), for the DRIVE motion model, the limits
are setup using the code:

 /* Limit to ~60mph, 90 degrees/sec pan, .125G acceleration */
        pfuXformerLimits(ViewState->xformer, 30.0f, 90.0f, 1.25f, NULL);

and height above the ground as:

  /* Follow 2 meters above ground */
        if (collideMode == PF_ON)
            pfuXformerCollision(ViewState->xformer, PFUCOLLIDE_GROUND, 2.0f,
                ViewState->scene);
        else
            pfuXformerCollision(ViewState->xformer, PFUCOLLIDE_GROUND, 0.0f,
                NULL);

        /* Collide with objects in scene */
        if (collideMode == PF_ON)
            pfuXformerCollision(ViewState->xformer, PFUCOLLIDE_OBJECT,
                2.0f*ViewState->near, ViewState->scene);
        else
            pfuXformerCollision(ViewState->xformer, PFUCOLLIDE_OBJECT, 0.0f,
                NULL);

        pfuXformerCoord(ViewState->xformer, &ViewState->viewCoord);

Q:
Does that mean that these functions use mph and meters as units for speed
and distance? The man page does not say so.


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:54 PDT

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