EntityYaw, EntityRoll
Übersicht

![]() |
blitzuser34Betreff: EntityYaw, EntityRoll |
![]() Antworten mit Zitat ![]() |
---|---|---|
Hi,
Code: [AUSKLAPPEN] Graphics3D 800,600,32,2
SetBuffer BackBuffer() AppTitle "Rotation Demo" camera=CreateCamera() cube=CreateCube() MoveEntity cube,0,0,3 TurnEntity cube,-90,0,0 light=CreateLight() Repeat TurnEntity cube,0,0,1 RenderWorld Text 0,0,"EntityPitch: "+EntityPitch(cube) Text 0,15,"EntityYaw: "+EntityYaw(cube) Text 0,30,"EntityRoll: "+EntityRoll(cube) Flip Forever Sorry, aber ich steh grad voll aufm Schlauch. Wieso wechseln EntityYaw und EntityRoll zwischen 0, 180 und -180. Habe das Problem beim Coden an meinem Projekt entdeckt, habe da das selbe. Klar, ich könnte die Rotationswerte abspeichern und damit arbeiten, will ich aber nicht. Mfg Blitzuser34 |
||
![]() |
PSY |
![]() Antworten mit Zitat ![]() |
---|---|---|
Hier ein Auszug dazu aus dem englischen Forum:
Zitat: When rotated 180 degrees clockwise (viewed from X+) from a zero pitch angle (points towards Z+), EntityPitch returns 0 to 90 for the first quarter turn, and 90 to 0 for the second quarter turn. When rotated 180 degrees anti-clockwise (viewed from X+) from a zero pitch angle (points towards Z+), EntityPitch returns 0 to -90 for the first quarter turn, and -90 to 0 for the second quarter turn. A positive rotational value applied to the X axis using TurnEntity, will turn an entity clockwise (viewed from X+).
When rotated 180 degrees clockwise (viewed from Y+) from a zero yaw angle (points towards X+), EntityYaw returns 0 to -180 for the first half turn. When rotated 180 degrees anti-clockwise (viewed from Y+) from a zero yaw angle (points towards X+), EntityYaw returns 0 to 180 for the first half turn. A positive rotational value applied to the Y axis using TurnEntity, will turn an entity anti-clockwise (viewed from Y+). When rotated 180 degrees clockwise (viewed from Z+) from a zero yaw angle (points towards Y+), EntityRoll returns 0 to 180 for the first half turn. When rotated 180 degrees anti-clockwise (viewed from Z+) from a zero yaw angle (points towards Y+), EntityRoll returns 0 to -180 for the first half turn. A positive rotational value applied to the Z axis using TurnEntity, will turn an entity clockwise (viewed from Z+). L8er, PSY |
||
Übersicht


Powered by phpBB © 2001 - 2006, phpBB Group