|
Lifting Entities with vec_for_vertex!
#263984
05/03/09 17:11
05/03/09 17:11
|
Joined: Apr 2009
Posts: 113 Netherlands
Dreher
OP
Warez Victim
|
OP
Warez Victim
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=MxEBgvUEXNoCross1:
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:
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
Dreher
OP
Warez Victim
|
OP
Warez Victim
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
Dreher
OP
Warez Victim
|
OP
Warez Victim
Joined: Apr 2009
Posts: 113
Netherlands
|
Is it so hard getting this done? I'm not sure
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
Senior Expert
|
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
Dreher
OP
Warez Victim
|
OP
Warez Victim
Joined: Apr 2009
Posts: 113
Netherlands
|
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 The Arm is connected to the rotating part (Molen) And the Cross is connected to the Arm (Arm1) by PH_HINGE
A7 7.77
|
|
|
|