facing condition fixed

Announcements and discussion regarding any projects related to Cyan Worlds' Plasma Engine including (but not limited to) CyanWorlds.com Engine, Drizzle, OfflineKI, PyPRP, and libHSPlasma.

facing condition fixed

Postby D'Lanor » Tue May 13, 2008 8:59 am

I fixed the facing condition in the simpleclick quickscript.

Can someone review revision 163 in my SVN contrib folder? I forgot to add comments when I committed it. :oops:

It appears this was working after all but all it required was setting a facing tolerance. The tolerance defaults to -1.0 (see alc_LogicClasses) which seems to break the facing condition. Now I am trying to find a good value for the tolerance. :)

The facing condition is also optional now. It is only set if the user specifies the "facevalue" (tolerance) parameter.


Edit: Testresults - Working values are between 0 and 1 (not exactly 0 or 1). Low values have a high tolerance angle. A value close to zero means that the angle is about 180 degrees, but the avatar is not allowed to face away from the clickable. 0.9 seems a useful general purpose value.
"It is in self-limitation that a master first shows himself." - Goethe
User avatar
D'Lanor
 
Posts: 1980
Joined: Sat Sep 29, 2007 4:24 am

Re: facing condition fixed

Postby Grogyan » Tue May 13, 2008 11:03 am

yipee :D :D
Better to have loved and lost than never to have loved at all
User avatar
Grogyan
 
Posts: 1203
Joined: Thu Oct 11, 2007 1:27 am


Return to Plasma Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron