Gamestudio Links
Zorro Links
Newest Posts
Zorro version 3.0 prerelease!
by Grant. 02/24/26 22:21
WFO Training with parallel cores Zorro64
by Martin_HH. 02/24/26 19:51
ZorroGPT
by TipmyPip. 02/23/26 21:52
Camera always moves upwards?
by clonman. 02/21/26 09:29
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 02/19/26 13:22
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
0 registered members (), 5,796 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
alx, ApprenticeInMuc, PatrickH90, USER0328, Sfrdragon
19199 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 | 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