Re: path following reset

New Message Reply Date view Thread view Subject view Author view

Jean-Claude Bachmann (jean-claude.bachmann++at++artemedia.de)
Thu, 02 Jan 1997 11:17:53 +0100


Dee A. Chapman wrote:
>
> Hello,
>
> I have created a path that I have an object follow. However, it
> appears once the object has followed the path once, it cannot
> follow it again. Is there something that needs to be reset? I
> don't want to use the CloseLoop function because I don't want
> the object to follow the path continuously, but rather whenever
> I request it. Any suggestions?
>
> Thanks!
> Dee

You forgot to mention which path utility you are using. If you took
the pfuPath shipped with performer there is a function called
pfuFollowPath(..., float seconds,....
which takes as one of its arguments a timestamp at which to calculate
the position on the path. Now if you want to reset the path to the
beginning, you simply have to keep an internal clock which is set to
zero again. (pfuFollowPath(path,0,where,orient) should calculate the
path at the beginning). The only problem I remember is that there is
no function which tells when the path is at the end. There really should
be a return value for the pfuFollowPath routine that gives something
like PATH_FINISHED.

J.C.

-- 

******************************************************************** * Artemedia GmbH | Tel.: +49 [0]30 25443 - 0 * * Jean-Claude Bachmann | Tel.: +49 0172 - 219 13 76 * * Budapesterstr. 40 | Fax.: +49 [0]30 25443 - 240 * * D-10787 Berlin | email: jean-claude.bachmann++at++artemedia.de * * Germany | Web Page http://www.artemedia.de * ******************************************************************** ======================================================================= List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/ Submissions: info-performer++at++sgi.com Admin. requests: info-performer-request++at++sgi.com


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

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