Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
4 registered members (AndrewAMD, fogman, Grant, juanex), 972 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Vector Arrays (i'm not very good at them) #276289
07/04/09 08:28
07/04/09 08:28
Joined: Dec 2008
Posts: 528
Wagga, Australia
the_mehmaster Offline OP
User
the_mehmaster  Offline OP
User

Joined: Dec 2008
Posts: 528
Wagga, Australia
Ok so i have my definitions:
Code:
VECTOR vertice[7];
vertice[5].x = 100; vertice[5].y = 0; vertice[5].z = -100;
//other vertex definitions..


And a line to set a variable to a value(somewhere else):
Code:
verticestoreval = vertice[5].x;



Then comes my problem.
For some reason verticestoreval is always 0. It should be 100!
Can someone help?

Re: Vector Arrays (i'm not very good at them) [Re: the_mehmaster] #276418
07/04/09 23:34
07/04/09 23:34
Joined: Dec 2008
Posts: 528
Wagga, Australia
the_mehmaster Offline OP
User
the_mehmaster  Offline OP
User

Joined: Dec 2008
Posts: 528
Wagga, Australia
This is an important issue for my project. I need it answered..

Doesn't anyone know?

Re: Vector Arrays (i'm not very good at them) [Re: the_mehmaster] #276420
07/04/09 23:41
07/04/09 23:41
Joined: Apr 2006
Posts: 737
Ottawa, Canada
O
Ottawa Offline
User
Ottawa  Offline
User
O

Joined: Apr 2006
Posts: 737
Ottawa, Canada
Hi!

Where is your vector definition : VECTOR vertice[7];
Inside a function or outside?

Try
Quote:


vec_set ( VECTOR* vector1, VECTOR* vector2)
Copies the second vector to the first, thus overwriting the first vector.



Hope this helps!
Ottawa laugh

Ver 7.86.2 Pro and Lite-C
Re: Vector Arrays (i'm not very good at them) [Re: Ottawa] #276429
07/05/09 00:21
07/05/09 00:21
Joined: Dec 2008
Posts: 528
Wagga, Australia
the_mehmaster Offline OP
User
the_mehmaster  Offline OP
User

Joined: Dec 2008
Posts: 528
Wagga, Australia
That fixed it. Thanks!

Re: Vector Arrays (i'm not very good at them) [Re: the_mehmaster] #276852
07/06/09 19:16
07/06/09 19:16
Joined: Apr 2006
Posts: 737
Ottawa, Canada
O
Ottawa Offline
User
Ottawa  Offline
User
O

Joined: Apr 2006
Posts: 737
Ottawa, Canada
Hi!

Glad to help wink


Ottawa


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