Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > General Coding
You last visited: Today at 19:05

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Rotate Euler angles

Discussion on Rotate Euler angles within the General Coding forum part of the Coders Den category.

Reply
 
Old   #1
 
Endecs's Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 2,256
Received Thanks: 2,348
Rotate Euler angles

Hallo,

derzeit hab ich folgendes Problem:

Von einem Spiel werden die Objekt Rotationen in Euler gespeichert. Somit braucht man insgesamt 3 Werte um das Objekt richtig zu drehen, damit es z.B nicht auf einmal auf dem Kopf steht.

So sehen die 3 Werte aus:

X: -0.3387225568 (bank)
Y: -0.9310640097 (heading)
Z: -0.1355979592 (attitude)

Die 3 Werte können maximal +1 und -1 betragen.

Nun möchte ich das Objekt z.B nach rechts um die eigene Achse rotieren lassen, damit man aber dies machen kann, muss man an sich XY verändern, da beide angeben, wohin das Objekt ausgerichtet ist und man eine volle 360° Drehung schaft.

Aber wie ich das Objekt rotieren lassen kann, weis ich immer noch nicht, muss keine von 0-360° Drehung sein, ich habe einen Wert, wie das Objekt ausgerichtet sein muss in Radians, die Umrechnung in Grad (°) ist kein Problem. Und Grad / Radians kann ich jetzt nicht einfach so in die 2 Werte umwandeln, da die Ausgabe von der Funktion nur einen Wert zurück gibt & die Richtung bestimmt, in welche Richtung ein Objekt schauen muss, um diesen zu erreichen durch geradeaus laufen, wenn man es zu diesem Wert ändert.


/e: Die Oben genannten Daten sind die Matrix Daten, also hatte ich das ganze falsch verstanden, wenn ich dann alles habe, kann ich mal für andere die Lösung posten, außer es weiß schon jemand.

greets,
Endecs
Endecs is offline  
Reply


Similar Threads Similar Threads
[8 Ball Pool] Full Line, No Short Angles
04/17/2014 - Facebook - 19 Replies
I see many asking how to fix short angles, and I see this code appears a lot on Youtube, so I think it will patch soon anyway. Before it patched, here it what you can do to fix: Scan: A2 A0 A2 A0 62 04 12 17 00 (from Indo Hacker, they came out this code not even 1 day after the game changed to v.2.27b) Replace: A0 A2 A0 A2 62 (from Pakistan Hacker) + 04 12 17 00 (Indo Hacker) you will get full 2 pretty damn long lines, so thanks to them. Scan: A2 A0 A2 A0 62 04 12 17 00 Replace: A0...
Event rotate 40 k pen rooms
12/19/2011 - S4 League - 2 Replies
im creating a room to play rotate =D English(europe) free 2 room 1 pw rotate
How i can rotate captchas
11/25/2011 - DarkOrbit - 5 Replies
I have one question.. How i can rotate captchas?!:confused:
Rotate Extra 10 And 10 Minutes
07/17/2011 - Metin2 - 1 Replies
Good People. My server has a big problem. I only can rotate extras in 10 of 10 minutes. How can I solve this problem?
Request: Source with perfect fb angles
04/11/2010 - CO2 Private Server - 2 Replies
idc which version or whats implemented, just need a source with perfect fb angles because i am making a pvp server. If anyone has one I would appreciate it completly if you would give it to me. thanks in advance



All times are GMT +1. The time now is 19:07.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.