Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
5 registered members (Dico, AndrewAMD, TipmyPip, NewbieZorro, Grant), 15,253 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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