Gamestudio Links
Zorro Links
Newest Posts
freewhyblogelsewhere
by 9489cpjf. 06/03/24 06:06
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
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 1,301 guests, and 9 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19056 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
is it possible to set bone as a physics objects? #241326
12/15/08 16:20
12/15/08 16:20
Joined: Aug 2008
Posts: 63
=Strogg=3rd_com_cent.
O
Omicron_NEGA Offline OP
Warez kiddie?
Omicron_NEGA  Offline OP
Warez kiddie?
O

Joined: Aug 2008
Posts: 63
=Strogg=3rd_com_cent.
is it possible to set bone as a physics objects?
im trying to make something like that.
thx!


P4 3.6GHz x2 8GB RAM DDR2 GeForce8800GTS
Re: is it possible to set bone as a physics objects? [Re: Omicron_NEGA] #241440
12/16/08 12:03
12/16/08 12:03
Joined: Jun 2008
Posts: 151
Ukraine
XD1v0 Offline
Member
XD1v0  Offline
Member

Joined: Jun 2008
Posts: 151
Ukraine
Originally Posted By: Omicron_NEGA
is it possible to set bone as a physics objects?
im trying to make something like that.
thx!

No. But you can create entity and attach bone to entity. This method I use in PCE (Physics Constrains Editor)
Code:
ENTITY* bones_ent = ent_create("bones.mdl",nullvector,NULL);
ENTITY* ph_ent = ent_create("box.mdl",nullvector,NULL);
STRING* ph_ent_bone = "bone1";
function attach_ent_bones  ()
{
 	VECTOR b_pos;
	VECTOR b_move;
	VECTOR b_ang;
	VECTOR b_ang1;

	ent_bonereset(bones_ent,ph_ent_bone);
	vec_for_bone(b_pos,bones_ent,ph_ent_bone);
	ang_for_bone(b_ang,bones_ent,ph_ent_bone);
	vec_set(b_move,ph_ent.x);vec_sub(b_move,b_pos);
	b_move.x/= bones_ent.scale_x;b_move.y/= bones_ent.scale_y; b_move.z/= bones_ent.scale_z; 
	vec_rotateback (b_move,b_ang);///
			
	b_ang.x = 360-b_ang.x;b_ang.y = 360-b_ang.y;b_ang.z = 360-b_ang.z;
	vec_set(b_ang1,nullvector);
	ang_add(b_ang1,vector(b_ang.x,0,0));
	ang_add(b_ang1,vector(0,b_ang.y,0));
	ang_add(b_ang1,vector(0,0,b_ang.z));
	ang_rotate(b_ang1,ent.pan);
	ent_bonerotate(bones_ent,ph_ent_bone,b_ang1);
	ent_bonemove(bones_ent,ph_ent_bone,b_move)
}
 


Last edited by XD1v0; 12/16/08 12:07.

A7 Commercial cool
Celeron 1700, GeForce 5500 FX 256mb, 1 Gb Ram
Re: is it possible to set bone as a physics objects? [Re: XD1v0] #241453
12/16/08 13:18
12/16/08 13:18
Joined: Aug 2008
Posts: 63
=Strogg=3rd_com_cent.
O
Omicron_NEGA Offline OP
Warez kiddie?
Omicron_NEGA  Offline OP
Warez kiddie?
O

Joined: Aug 2008
Posts: 63
=Strogg=3rd_com_cent.
sounds like good idea..
i'll give it a try
thx
bth,what is PCE? a 3rd plugin for 3DGS?


P4 3.6GHz x2 8GB RAM DDR2 GeForce8800GTS
Re: is it possible to set bone as a physics objects? [Re: Omicron_NEGA] #241458
12/16/08 13:52
12/16/08 13:52
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
it's a tool made by XD1v0, helps you make physics constraints.

you can download from au/demos.


3333333333
Re: is it possible to set bone as a physics objects? [Re: Quad] #241475
12/16/08 16:21
12/16/08 16:21
Joined: Jun 2008
Posts: 151
Ukraine
XD1v0 Offline
Member
XD1v0  Offline
Member

Joined: Jun 2008
Posts: 151
Ukraine
grin laugh


A7 Commercial cool
Celeron 1700, GeForce 5500 FX 256mb, 1 Gb Ram
Re: is it possible to set bone as a physics objects? [Re: XD1v0] #241478
12/16/08 16:49
12/16/08 16:49
Joined: Aug 2008
Posts: 63
=Strogg=3rd_com_cent.
O
Omicron_NEGA Offline OP
Warez kiddie?
Omicron_NEGA  Offline OP
Warez kiddie?
O

Joined: Aug 2008
Posts: 63
=Strogg=3rd_com_cent.
are you guys kidding on me?
i dont get it...:(


P4 3.6GHz x2 8GB RAM DDR2 GeForce8800GTS
Re: is it possible to set bone as a physics objects? [Re: Omicron_NEGA] #241498
12/16/08 18:25
12/16/08 18:25
Joined: Jun 2008
Posts: 151
Ukraine
XD1v0 Offline
Member
XD1v0  Offline
Member

Joined: Jun 2008
Posts: 151
Ukraine
Originally Posted By: Omicron_NEGA
are you guys kidding on me?
i dont get it...:(

Sorry I don't check the code crazy.
I corrected, and made an example.
Example
Code:
#include <acknex.h>
#include <default.c>

ENTITY* bones_ent;
ENTITY* ph_ent;
STRING* ph_ent_bone = "leg_up_left";
function attach_ent_bones  ()
{
 	VECTOR b_pos;
	VECTOR b_move;
	VECTOR b_ang;
	VECTOR b_ang1;

	ent_bonereset(bones_ent,ph_ent_bone);
	vec_for_bone(b_pos,bones_ent,ph_ent_bone);
	ang_for_bone(b_ang,bones_ent,ph_ent_bone);
	vec_set(b_move,ph_ent.x);vec_sub(b_move,b_pos);
	b_move.x/= bones_ent.scale_x;b_move.y/= bones_ent.scale_y; b_move.z/= bones_ent.scale_z; 
	vec_rotateback (b_move,b_ang);
	
	b_ang.x = 360-b_ang.x;b_ang.y = 360-b_ang.y;b_ang.z = 360-b_ang.z;
	vec_set(b_ang1,nullvector);
	ang_add(b_ang1,vector(b_ang.x,0,0));
	ang_add(b_ang1,vector(0,b_ang.y,0));
	ang_add(b_ang1,vector(0,0,b_ang.z));
	ang_rotate(b_ang1,ph_ent.pan);
	ent_bonerotate(bones_ent,ph_ent_bone,b_ang1);
	ent_bonemove(bones_ent,ph_ent_bone,b_move);
}


void main ()
{
	level_load("");wait(2);
	bones_ent = ent_create("bones.mdl",nullvector,NULL);
	ph_ent = ent_create("box.mdl",nullvector,NULL);
	while(1)
	{
		ph_ent.x+=(random(100)-50)*time_step;
		attach_ent_bones();
		wait(1);
	}
}



A7 Commercial cool
Celeron 1700, GeForce 5500 FX 256mb, 1 Gb Ram
Re: is it possible to set bone as a physics objects? [Re: XD1v0] #241696
12/18/08 08:25
12/18/08 08:25
Joined: Aug 2008
Posts: 63
=Strogg=3rd_com_cent.
O
Omicron_NEGA Offline OP
Warez kiddie?
Omicron_NEGA  Offline OP
Warez kiddie?
O

Joined: Aug 2008
Posts: 63
=Strogg=3rd_com_cent.
thx 4 helping,and i cant access rapidshare..
could you please mail the example?
thx again!


P4 3.6GHz x2 8GB RAM DDR2 GeForce8800GTS

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