Gamestudio Links
Zorro Links
Newest Posts
Lapsa's very own thread
by Lapsa. 06/26/24 12:45
Executing Trades on Next Bar Open
by Zheka. 06/20/24 14:26
A simple game ...
by VoroneTZ. 06/18/24 10:50
Face player all the time ...
by bbn1982. 06/18/24 10:25
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 914 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mino, squik, AemStones, LucasJoshua, Baklazhan
19061 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 4 1 2 3 4
rotating with relative rotate (german and english) #184240
02/16/08 09:03
02/16/08 09:03
Joined: Mar 2007
Posts: 151
JokeSpeaker Offline OP
Member
JokeSpeaker  Offline 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] #184241
02/16/08 09:23
02/16/08 09:23
Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Xarthor Offline
Expert
Xarthor  Offline
Expert

Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Use: c_rotate with the flag USE_AXISR
More information available in the holy manual

Re: rotating with relative rotate (german and engl [Re: Xarthor] #184242
02/16/08 09:33
02/16/08 09:33
Joined: Mar 2007
Posts: 151
JokeSpeaker Offline OP
Member
JokeSpeaker  Offline OP
Member

Joined: Mar 2007
Posts: 151
The holy manual don't know anything about use_axisr and I think c_rotate is for professional?

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 Offline
Member
G_Tos  Offline
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 Offline OP
Member
JokeSpeaker  Offline 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] #184245
02/16/08 13:51
02/16/08 13:51
Joined: Aug 2005
Posts: 1,558
HK
V
vlau Offline
Serious User
vlau  Offline
Serious User
V

Joined: Aug 2005
Posts: 1,558
HK
You can if you update to A6.6 or, try ang_rotate.

Re: rotating with relative rotate (german and engl [Re: vlau] #184246
02/16/08 14:30
02/16/08 14:30
Joined: Mar 2007
Posts: 151
JokeSpeaker Offline OP
Member
JokeSpeaker  Offline OP
Member

Joined: Mar 2007
Posts: 151
I have the sybex version which I can't upgrade.
Or can I do it with sybex versions?
If no, then can me only help a mathematic formula.

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 Offline
Member
G_Tos  Offline
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


Spiele zu spielen ist Übung, sie zu machen Kunst!(Zitat)

Re: rotating with relative rotate (german and engl [Re: G_Tos] #184248
02/16/08 17:43
02/16/08 17:43
Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Xarthor Offline
Expert
Xarthor  Offline
Expert

Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
c_rotate is very well possible in A6
But as you have the sybex edition you might be "screwed" as I dont know when it was implemented into A6.

good luck then.

Re: rotating with relative rotate (german and engl [Re: Xarthor] #184249
02/16/08 18:08
02/16/08 18:08
Joined: Mar 2007
Posts: 151
JokeSpeaker Offline OP
Member
JokeSpeaker  Offline OP
Member

Joined: Mar 2007
Posts: 151
Quote:

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).



Hast du noch nie Star Wars gespielt? Da kann man nur nach links fliegen, wenn man nach links rollt und dann nach oben kippt. Keine pan winkel...

Quote:

c_rotate is very well possible in A6



I test it. I will edit the result into this post.

EDIT: I use
var rotation[3] = 0,0,0;
c_rotate(my,rotation,ignore_passable + ignore_passents + glide);
and then comes "missing/wrong parameter comma unexpected".

Quote:

But as you have the sybex edition you might be "screwed" as I dont know when it was implemented into A6.



sry, i don't understand the sentence. can someone translate it in german or can you write it "noobliker"? XD

Last edited by JokeSpeaker; 02/16/08 18:18.
Page 1 of 4 1 2 3 4

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1