1 registered members (AndrewAMD),
1,301
guests, and 9
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
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.
Omicron_NEGA
OP
Warez kiddie?
|
OP
Warez kiddie?
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
Member
|
Member
Joined: Jun 2008
Posts: 151
Ukraine
|
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)
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 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.
Omicron_NEGA
OP
Warez kiddie?
|
OP
Warez kiddie?
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
Senior Expert
|
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
Member
|
Member
Joined: Jun 2008
Posts: 151
Ukraine
|
A7 Commercial Celeron 1700, GeForce 5500 FX 256mb, 1 Gb Ram
|
|
|
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
Member
|
Member
Joined: Jun 2008
Posts: 151
Ukraine
|
are you guys kidding on me? i dont get it...:( Sorry I don't check the code . I corrected, and made an example. Example
#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 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.
Omicron_NEGA
OP
Warez kiddie?
|
OP
Warez kiddie?
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
|
|
|
|