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
5 registered members (Kingware, AndrewAMD, AemStones, RealSerious3D, degenerate_762), 837 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
LucasJoshua, Baklazhan, Hanky27, firatv, wandaluciaia
19054 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 | 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