Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
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
4 registered members (AndrewAMD, Kingware, AemStones, RealSerious3D), 1,388 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
LucasJoshua, Baklazhan, Hanky27, firatv, wandaluciaia
19054 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Lifting Entities with vec_for_vertex! #263984
05/03/09 17:11
05/03/09 17:11
Joined: Apr 2009
Posts: 113
Netherlands
D
Dreher Offline OP
Warez Victim
Dreher  Offline OP
Warez Victim
D

Joined: Apr 2009
Posts: 113
Netherlands
Hello people!

I'm having a small problem with my model.

What I have is a rotating arm, that lifts up and down, and on that arm there is a cross connected to it (By vertex), yet it does rotate with the arm, but it won't go up and down!

Here is a small demo video:
http://www.youtube.com/watch?v=MxEBgvUEXNo

Cross1:
Code:
   function kruis_1()
{
   var hingeIDkruis;
   proc_late(); //Wait...
   kruis1 = my;
   my.passable = on;	
   my.flare = off;
   my.transparent = off;
   my.ambient = 10;
   my.roll = 0;
   
   my.scale_x = 0.50;
   my.scale_y = 0.50;
   my.scale_z = 0.50;


Arm1:
Code:
   function arm_1()
{
   var oid;
   var pos[3];
   proc_late(); //Wait...
   arm1 = my;
   my.passable = on;	
   my.flare = off;
   my.transparent = off;
   my.ambient = 10;
   
   my.scale_x = 1.4;
   my.scale_y = 1.4;
   my.scale_z = 1.4;
	
   vec_for_vertex(temp, my, 9107);
   kruis1 = ent_create("kruis.mdl",temp,kruis_1);
   wait(1);



Thanks alot!

Last edited by Dreher; 05/05/09 15:58.

A7 7.77
Re: Lifting Entities with vec_for_vertex! [Re: Dreher] #264038
05/03/09 21:23
05/03/09 21:23
Joined: Apr 2009
Posts: 113
Netherlands
D
Dreher Offline OP
Warez Victim
Dreher  Offline OP
Warez Victim
D

Joined: Apr 2009
Posts: 113
Netherlands
I have been using the Search function, but couldn't find anything related to this .. and I know that there are more people struggling with this!


A7 7.77
Re: Lifting Entities with vec_for_vertex! [Re: Dreher] #264148
05/04/09 16:26
05/04/09 16:26
Joined: Apr 2009
Posts: 113
Netherlands
D
Dreher Offline OP
Warez Victim
Dreher  Offline OP
Warez Victim
D

Joined: Apr 2009
Posts: 113
Netherlands
Is it so hard getting this done?

I'm not sure shocked


A7 7.77
Re: Lifting Entities with vec_for_vertex! [Re: Dreher] #264154
05/04/09 16:48
05/04/09 16:48
Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
Pappenheimer Offline
Senior Expert
Pappenheimer  Offline
Senior Expert

Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
From the video:

the cross seems not to be connected to the arm, but to the whole rotating entity.
Means, the arm is connected to the turning main entity, but the cross is connected to the main turning entity too, instead of being connected to the arm.

IMO, it is not a problem of the vec_for_vertex instruction, because that only puts it only at the right position at the beginning, right before all the physics stuff begins.

Re: Lifting Entities with vec_for_vertex! [Re: Pappenheimer] #264155
05/04/09 16:50
05/04/09 16:50
Joined: Apr 2009
Posts: 113
Netherlands
D
Dreher Offline OP
Warez Victim
Dreher  Offline OP
Warez Victim
D

Joined: Apr 2009
Posts: 113
Netherlands
Originally Posted By: Pappenheimer
From the video:

the cross seems not to be connected to the arm, but to the whole rotating entity.
Means, the arm is connected to the turning main entity, but the cross is connected to the main turning entity too, instead of being connected to the arm.

IMO, it is not a problem of the vec_for_vertex instruction, because that only puts it only at the right position at the beginning, right before all the physics stuff begins.


Well I don't get it smirk

The Arm is connected to the rotating part (Molen)
And the Cross is connected to the Arm (Arm1) by PH_HINGE smirk


A7 7.77
Re: Lifting Entities with vec_for_vertex! [Re: Dreher] #264194
05/04/09 23:06
05/04/09 23:06
Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
Pappenheimer Offline
Senior Expert
Pappenheimer  Offline
Senior Expert

Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
Try to set a wait(1); before the following:

vec_for_vertex(temp, my, 9107);
kruis1 = ent_create("kruis.mdl",temp,kruis_1);
wait(1);


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