Thread

Negative Yaw? (Sdk)

Negative Yaw? // Sdk

1  |  

runay@cyberjunkie.com (runay)

Mar 1, 1999, 7:09pm
Hi,

Don't know what I'm doing wrong but somehow I'm getting a negative
AW_AVATAR_YAW (-1800) when facing south (according to the SDK docs it
should be between 0 and 3599). Any ideas?

Runay

edward sumerfield

Mar 2, 1999, 1:20pm
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
I've never seen that before. What code are you using to get it?
[View Quote]

walter knupe

Mar 2, 1999, 3:35pm
This is a multi-part message in MIME format.

------=_NextPart_000_005B_01BE64DB.7C841940
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable


Well, i have. When examining it i found that starting from direction 0 =
it counts up to 1799 when turning clockwise and down to=20
-1800 when turning counterclockwise.=20

Its not what i expected, but once you know its ok :)

Walter aka Faber


Edward Sumerfield schrieb in Nachricht =
<36DC01C5.294FED91 at poboxes.com>...
I've never seen that before. What code are you using to get it?=20
[View Quote] Hi,=20
Don't know what I'm doing wrong but somehow I'm getting a =
negative=20
AW_AVATAR_YAW (-1800) when facing south (according to the SDK =
docs it=20
should be between 0 and 3599). Any ideas?=20

Runay


------=_NextPart_000_005B_01BE64DB.7C841940
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>

<META content=3Dtext/html;charset=3Diso-8859-1 =
http-equiv=3DContent-Type><!doctype html public "-//w3c//dtd html 4.0 =
transitional//en">
<META content=3D'"MSHTML 4.72.3511.1300"' name=3DGENERATOR>
</HEAD>
<BODY bgColor=3D#d8d0c8>
<DIV><FONT color=3D#000000 face=3DArial><FONT =
size=3D3></FONT></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000000 face=3DArial><FONT size=3D3>Well, i have. =
When examining it=20
i found that starting from direction 0 it counts up to 1799 when turning =

clockwise and down to </FONT></FONT><FONT size=3D3></FONT></DIV>
<DIV><FONT color=3D#000000 face=3DArial><FONT =
size=3D3>-</FONT></FONT><FONT=20
size=3D3><FONT color=3D#000000 face=3DArial>1800 when turning =
counterclockwise.=20
</FONT></FONT></DIV>
<DIV><FONT color=3D#000000 face=3DArial><FONT =
size=3D3></FONT></FONT><FONT=20
size=3D3></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000000 face=3DArial><FONT size=3D3>Its not what i =
expected, but=20
once you know its ok :)</FONT></FONT><FONT size=3D3></FONT></DIV>
<DIV><FONT color=3D#000000 face=3DArial><FONT =
size=3D3></FONT></FONT><FONT=20
size=3D3></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial><FONT size=3D3>Walter aka =
Faber</FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<BLOCKQUOTE=20
style=3D"BORDER-LEFT: #000000 solid 2px; MARGIN-LEFT: 5px; PADDING-LEFT: =
5px">
<DIV>Edward Sumerfield<ESUMERFD at POBOXES.COM> schrieb in Nachricht =
&lt;<A=20
=
href=3D"mailto:36DC01C5.294FED91 at poboxes.com">36DC01C5.294FED91 at poboxes.c=
om</A>&gt;...</DIV>I've=20
never seen that before. What code are you using to get it?=20
[View Quote] ------=_NextPart_000_005B_01BE64DB.7C841940--

edward sumerfield

Mar 2, 1999, 4:20pm
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<body bgcolor="#D8D0C8">
Are you saying that if you are facing east then it will report 900?
<p>It is supposed to report 0 as North, 900 as West, 1800 as South and
2700 as East. My trig functions are based on yaw/10. If it didn't do that
I would expect my deer to be running in all kinds of strange directions.
[View Quote] </body>
</html>

runay@cyberjunkie.com (runay)

Mar 2, 1999, 5:58pm
Yes I came to the same conclusion after checking some variables.

N = 0
S = -1800
W = 900
E = -900

So, going counterclockwise (left) it goes from 0 to 1799 and clockwise
(right) it goes from -1 to -1800. This means that values on the West
side are OK but values on the East side will yield incorrect results.
Weird, but I guess I can convert this before calling any functions.

Runay

On Tue, 2 Mar 1999 18:35:46 +0100, "Walter Knupe" <wak at faber.ping.de>
[View Quote] >This is a multi-part message in MIME format.
>
>------=_NextPart_000_005B_01BE64DB.7C841940
>Content-Type: text/plain;
> charset="iso-8859-1"
>Content-Transfer-Encoding: quoted-printable
>
>
>Well, i have. When examining it i found that starting from direction 0 =
>it counts up to 1799 when turning clockwise and down to=20
>-1800 when turning counterclockwise.=20
>
>Its not what i expected, but once you know its ok :)
>
>Walter aka Faber
>

baggis

Mar 3, 1999, 3:04am
I've also noticed this rather strange behavior, on the other hand, when
setting the yaw, 0-3599 works fine.....

/Baggis

[View Quote]

decastro@cable.a2000.nl (xelag)

Mar 3, 1999, 11:25am
In my experience, the SDK doesn't seem to mind if you write East as
-900 or 2700, both seem to be treated correctly. Querying property I
found out that some objects have their yaw stored as negative angles,
maybe due to a clockwise rotation. I myself use only positive values.

XelaG.

On Tue, 2 Mar 1999 18:35:46 +0100, "Walter Knupe" <wak at faber.ping.de>
[View Quote] >
>Well, i have. When examining it i found that starting from direction 0 it counts up to 1799 when turning clockwise and down to
>-1800 when turning counterclockwise.
>
>Its not what i expected, but once you know its ok :)
>
>Walter aka Faber
>
>
> Edward Sumerfield schrieb in Nachricht <36DC01C5.294FED91 at poboxes.com>...
> I've never seen that before. What code are you using to get it?
[View Quote] --
Xelagot 46ADB [Delph]
creator: XelaG
email: decastro at cable.a2000.nl

runay@cyberjunkie.com (runay)

Mar 3, 1999, 8:34pm
Thanks all, I finally got it to work. At last I can finish my Holodeck
experiment. Computer, end program ;-)

Runay

[View Quote] >Hi,
>
>Don't know what I'm doing wrong but somehow I'm getting a negative
>AW_AVATAR_YAW (-1800) when facing south (according to the SDK docs it
>should be between 0 and 3599). Any ideas?
>
>Runay

1  |  
Awportals.com is a privately held community resource website dedicated to Active Worlds.
Copyright (c) Mark Randall 2006 - 2024. All Rights Reserved.
Awportals.com   ·   ProLibraries Live   ·   Twitter   ·   LinkedIn