Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (1 invisible), 857 guests, and 10 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Trail angle problems #318922
04/10/10 19:22
04/10/10 19:22
Joined: May 2009
Posts: 445
Peine, Germany
Razoron Offline OP
Senior Member
Razoron  Offline OP
Senior Member

Joined: May 2009
Posts: 445
Peine, Germany
Hi,
i have some problems with the angels of the trail of my plane. At the moment i set the angels like this:
Code:
trail.pan=my.pan;
trail.tilt=my.tilt-90;
trail.roll=my.roll;
vec_set(trail.x,my.x);


But it doesn't fit. The edges of the trail don't fit to wings.
Here is a little video: DOWNLOAD
Thanks in advance.

Re: Trail angle problems [Re: Razoron] #318936
04/10/10 21:13
04/10/10 21:13
Joined: Aug 2007
Posts: 1,922
Schweiz
Widi Offline
Serious User
Widi  Offline
Serious User

Joined: Aug 2007
Posts: 1,922
Schweiz
Downloadlink don`t work...
Something about your code: You can replace

trail.pan=my.pan;
trail.tilt=my.tilt-90;
trail.roll=my.roll;

with:

vec_set(trail.pan,my.pan);

Re: Trail angle problems [Re: Widi] #318981
04/11/10 11:04
04/11/10 11:04
Joined: May 2009
Posts: 445
Peine, Germany
Razoron Offline OP
Senior Member
Razoron  Offline OP
Senior Member

Joined: May 2009
Posts: 445
Peine, Germany
The download link IS working, i just tried it.
I will test your suggestion.

Last edited by Razoron; 04/11/10 11:04.
Re: Trail angle problems [Re: Razoron] #318990
04/11/10 11:51
04/11/10 11:51

F
Fast_System
Unregistered
Fast_System
Unregistered
F



This is a ANGLE. You can't use vector expression. Try this again;

vec_set(trail.pan,my.pan) and delete "trail.pan=my.pan" expression...

Or,

vec_set(trail.tilt,my.tilt) and delete "trail.tilt=my.tilt" expression...

Or,

vec_set(trail.roll,my.roll) and delete "trail.roll=my.roll" expression...


If you want to play x plane, define a vector.

Re: Trail angle problems [Re: ] #318991
04/11/10 11:54
04/11/10 11:54
Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
Rei_Ayanami Offline
Expert
Rei_Ayanami  Offline
Expert

Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
@Fast_System : Please be informed before you post such stupid and senseless post! Vector expressions work with vec_set but what you wrote won't work!

@Razoron: Is your airplane a physics object?

Re: Trail angle problems [Re: Rei_Ayanami] #318994
04/11/10 11:58
04/11/10 11:58

F
Fast_System
Unregistered
Fast_System
Unregistered
F



Originally Posted By: Rei_Ayanami
@Fast_System : Please be informed before you post such stupid and senseless post! Vector expressions work with vec_set but what you wrote won't work!


My English isn't good you may have misunderstood my message.

Re: Trail angle problems [Re: ] #318995
04/11/10 12:00
04/11/10 12:00
Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
Rei_Ayanami Offline
Expert
Rei_Ayanami  Offline
Expert

Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
No, i understood you right wink

"This is a ANGLE. You can't use vector expression. Try this again;"

but he can, it will work wink


but such won't work:

"vec_set(trail.tilt,my.tilt);"

Re: Trail angle problems [Re: Rei_Ayanami] #318996
04/11/10 12:21
04/11/10 12:21
Joined: Aug 2007
Posts: 1,922
Schweiz
Widi Offline
Serious User
Widi  Offline
Serious User

Joined: Aug 2007
Posts: 1,922
Schweiz
@Fast_System: Yes you are really false. If you use
vec_set(my.pan,you.pan);
then the Engine do following:

vector1[0] = vector2[0]; // pan or x or red
vector1[1] = vector2[1]; // tilt or y or green
vector1[2] = vector2[2]; // roll or z or blue

The pan / tilt / roll or red / green / blue are notting other than a Vector (Vector = array that contains 3 values)

EDIT: have a look in the manual before you writing someting false.

Last edited by Widi; 04/11/10 12:23.
Re: Trail angle problems [Re: Widi] #318998
04/11/10 12:32
04/11/10 12:32

F
Fast_System
Unregistered
Fast_System
Unregistered
F



I may have misunderstood the question.Because vectors have 3 kinds of information about that. I'm sorry for mistakes... frown

Last edited by Fast_System; 04/11/10 12:33.
Re: Trail angle problems [Re: Rei_Ayanami] #319001
04/11/10 12:59
04/11/10 12:59
Joined: May 2009
Posts: 445
Peine, Germany
Razoron Offline OP
Senior Member
Razoron  Offline OP
Senior Member

Joined: May 2009
Posts: 445
Peine, Germany
Originally Posted By: Rei_Ayanami

@Razoron: Is your airplane a physics object?

No, it isn't. I move it with c_move and c_rotate.

Page 1 of 2 1 2

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