1 registered members (AndrewAMD),
914
guests, and 0
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
rotating with relative rotate (german and english)
#184240
02/16/08 09:03
02/16/08 09:03
|
Joined: Mar 2007
Posts: 151
JokeSpeaker
OP
Member
|
OP
Member
Joined: Mar 2007
Posts: 151
|
Hi, ich wollte ein Raumschiffsteuerung wie die Spiele von Star Wars scripten, allerdings drehen die tilt-Winkel nur in den Weltkoordinaten aber nicht vom momentanen roll-Winkel des players aus. Kann ich dies irgendwie durch eine mathematische Formel ergänzen? Zum Beispiel: my.tilt += 1; my.pan += roll / 2; (Nur ein Beispiel!)
Sry dass ich euch frage, aber ich bin erst noch in der 7. Klasse und kann schlecht an solchen Formeln rumexperimentieren, was ich schon ergebnislos gemacht habe. XD
Hi, I would like to script a spaceshiprotating how the games of Star Wars, but the tilt-angle don't rotate from the actually roll-angle. It will only rotate in the world-coordinates. Can I correct it with a mathematic formula? For example: my.tilt += 1; my.pan += roll / 2; (only an example!)
Sry that I ask you, but I are first in the 7. class and can't experiment with mathematic formulas so good. I tried it, but the result was so bad. XD
I use A6 Extra Ich benutze A6 Extra
Last edited by JokeSpeaker; 02/16/08 09:03.
|
|
|
Re: rotating with relative rotate (german and engl
[Re: JokeSpeaker]
#184243
02/16/08 11:13
02/16/08 11:13
|
Joined: Jul 2007
Posts: 163 c:\Germany\Bavaria.exe
G_Tos
Member
|
Member
Joined: Jul 2007
Posts: 163
c:\Germany\Bavaria.exe
|
? Ich weiß nicht, ob ich dich richtig verstanden habe, aber Nimm einfach c_rotate(Entity* my,vector* drehwinkel,USE_AXISR), dass geht am besten und damit hast du auch gleich noch eine Kollisionserkennung, also dreht sich das raumschiff nicht in die wand, wenn es umlenkt...
Spiele zu spielen ist Übung, sie zu machen Kunst!(Zitat)
|
|
|
Re: rotating with relative rotate (german and engl
[Re: G_Tos]
#184244
02/16/08 12:31
02/16/08 12:31
|
Joined: Mar 2007
Posts: 151
JokeSpeaker
OP
Member
|
OP
Member
Joined: Mar 2007
Posts: 151
|
Dann verwechselt ihr wohl A6 mit A7 und C-Script mit Lite-C, denn mein Engine erkennt kein use_axisr.
Then you think I have A7, but I only have A6 Extra, because my game don't know use_axisr.
Last edited by JokeSpeaker; 02/16/08 12:32.
|
|
|
Re: rotating with relative rotate (german and engl
[Re: JokeSpeaker]
#184247
02/16/08 17:33
02/16/08 17:33
|
Joined: Jul 2007
Posts: 163 c:\Germany\Bavaria.exe
G_Tos
Member
|
Member
Joined: Jul 2007
Posts: 163
c:\Germany\Bavaria.exe
|
Quote:
Dann verwechselt ihr wohl A6 mit A7 und C-Script mit Lite-C, denn mein Engine erkennt kein use_axisr.
Then you think I have A7, but I only have A6 Extra, because my game don't know use_axisr.
kann sein, denn ich hab nur A7 und A5, da weiß ich nicht, was in A6 alles möglich ist... Vielleicht könntest du den roll-winkel begrenzen, soweit, dass es nicht auffällt, wenn er sich um die Welt-Achse dreht (so hab ich das problem zumindest mal gelöst). Ne mathematische Formel fällt mir nicht ein, aber die würde eh seeehr schwierig ausfallen, denke ich ![](/ubbthreads/images/graemlins/smirk.gif)
Spiele zu spielen ist Übung, sie zu machen Kunst!(Zitat)
|
|
|
|