Gamestudio Links
Zorro Links
Newest Posts
Alpaca Plugin v1.5.2 Release
by kzhao. 01/11/26 13:42
Alpaca Plugin v1.4.0
by kzhao. 01/11/26 13:38
separating groups of 3 digits by a comma
by joe_kane. 01/11/26 00:01
MRC.c and WFO
by joe_kane. 01/10/26 23:58
BarOffset (default = 940 for daily bars?
by joe_kane. 01/10/26 23:46
NOMAX undeclared identifier.
by Petra. 01/09/26 21:12
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (AndrewAMD), 23,824 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
joe_kane, Namitha_NN, Syndrela, agasior, mosfet
19189 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Attachment Problem! #265067
05/10/09 01:52
05/10/09 01:52
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,

Some weird thing seems to happen ><

I have 2 entities, --> 1 x Arm, 1 x Cross.
The 'Cross' is attached to 'Arm'.
Entity 'Arm' is lifting UP and DOWN.
When I disable Physics on the 'Arm' entity, the 'Cross' entity which is attached to 'Arm' does go up and down together with the 'Arm' entity (Lifting)

As soon as I add physics on the 'Arm' entity, the 'Cross' entity doesn't want to come up.

The 'Arm' entity DOES rotate around it's pan, and the 'Cross' entity DOES follow the given vertex, but won't lift then...

Code:
       var axiskruis[3] = 0,0,1;


kruis_1 = Cross entity
Code:
action kruis_1
{
	var hingeIDkruis;
	var anchorkruis[3];
        kruis1 = my;
        my.passable = on;	
   
        my.scale_x = 0.50;
        my.scale_y = 0.50;
        my.scale_z = 0.50;
   
	phent_settype(my,PH_RIGID,PH_SPHERE);
	phent_setmass(my, 1, PH_SPHERE);
	phent_setGroup(my,2);
	hingeIDkruis = phcon_add(PH_HINGE, my, arm1);
	vec_rotate(kruis_pos1, vector(0,0,1));
	phcon_setparams1(hingeIDkruis, my.pos, axiskruis, nullvector );
	phcon_setparams2(hingeIDkruis, vector(-360, 360, 0), nullvector, nullvector);
	
	wait(1);
	phent_setdamping(my,100,100);
	
	while(1) 
	{
		vec_for_vertex(my.x, arm1, 9107);
		phcon_setmotor(hingeIDkruis,vector(kruisspeed,2400000,0),nullvector,nullvector);  //Gondelkreuze beschleunigen
		wait(1);
	}
}


arm_1 = Arm entity
Code:
action arm_1
{
	var oid;
	var armpos[3];
        proc_late(); //Wait...
	arm1 = my;
	my.passable = on;	
        my.flare = off;
        my.transparent = off;
        my.ambient = 10;
        my.roll = 0;
   
        my.scale_x = 1.4;
        my.scale_y = 1.4;
        my.scale_z = 1.4;
		
	phent_settype(my, PH_RIGID, PH_BOX);
	phent_setmass(my, 1, PH_BOX);
	phent_setgroup(my, 2);
	
	vec_set(armpos, vector(0,0,0));

	oid = phcon_add(PH_HINGE, my, molen);
	phcon_setparams1(oid, my.pos, armpos, nullvector);
	phcon_setparams2(oid, vector(0,0,0), nullvector, nullvector);
	
	vec_for_vertex(temp, my, 9107);
	ent_create("kruis.mdl", my.x, kruis_1);

        while(1)
        {
               vec_for_vertex(my.x,molen,297);
	       phcon_setmotor(oid,vector(0,0,0),nullvector,nullvector);
               wait(1);
        }
}


THANKS ALOT!

Last edited by Dreher; 05/10/09 01:56.

A7 7.77
Re: Attachment Problem! [Re: Dreher] #265236
05/11/09 10:57
05/11/09 10:57
Joined: Apr 2009
Posts: 113
Netherlands
D
Dreher Offline OP
Warez Victim
Dreher  Offline OP
Warez Victim
D

Joined: Apr 2009
Posts: 113
Netherlands
Still not fixed! ^^


A7 7.77

Moderated by  HeelX, Spirit 

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