Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, dr_panther, Quad), 935 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
PhysX move object?? #361050
02/28/11 19:31
02/28/11 19:31
Joined: Feb 2011
Posts: 26
J
jojo1995 Offline OP
Newbie
jojo1995  Offline OP
Newbie
J

Joined: Feb 2011
Posts: 26
hi all
how to move object in PhysX???
i need example plz

Re: PhysX move object?? [Re: jojo1995] #361051
02/28/11 19:52
02/28/11 19:52
Joined: Jan 2011
Posts: 797
Da wo du nicht bist! Muhahaha!
xxxxxxx Offline
User
xxxxxxx  Offline
User

Joined: Jan 2011
Posts: 797
Da wo du nicht bist! Muhahaha!
i wrote you an example at the last time, can you remember! look at the function which i used to rotate the objekt you just need to change a vector(i dont know wihich vector you have to change so look at the manual! im to lazy right now)
xxxxxxx


Es ist immer wieder erstaunlich, dass Leute die riesen Scripte schreiben die einfachsten sachen nicht können zb. mich mit SIEBEN x zu schreiben! tongue
Re: PhysX move object?? [Re: xxxxxxx] #361184
03/01/11 15:20
03/01/11 15:20
Joined: Feb 2011
Posts: 26
J
jojo1995 Offline OP
Newbie
jojo1995  Offline OP
Newbie
J

Joined: Feb 2011
Posts: 26
yes i know
at the last time you give me rotate object in PhysX
give me example for move in PhysX

Re: PhysX move object?? [Re: jojo1995] #361188
03/01/11 16:10
03/01/11 16:10
Joined: Jan 2011
Posts: 797
Da wo du nicht bist! Muhahaha!
xxxxxxx Offline
User
xxxxxxx  Offline
User

Joined: Jan 2011
Posts: 797
Da wo du nicht bist! Muhahaha!
Code:
action djhero()
{
	VECTOR pos;// mabye you'll need VECTOR* pos;
	pXent_settype(my,PH_RIGID,PH_CONVEX);// makes the entity to a phsiks ent. try some other collisionsmodes
	pXent_kinematic(me,1);// remove the gravity and other phsiks effekts
	while(1)
	{
		vec_set(pos,vector(my.x+?,my.y+?,my.z+?));// creates the position
		pXent_moveglobal( me, pos, vector(?Pan,?Tilt,?Roll));// rotate the ent
		wait(1);
	}
}


so it's the same function but i've change some you need pos to change the position(my.x+?(...) is needed)
xxxxxxx


Es ist immer wieder erstaunlich, dass Leute die riesen Scripte schreiben die einfachsten sachen nicht können zb. mich mit SIEBEN x zu schreiben! tongue
Re: PhysX move object?? [Re: xxxxxxx] #361189
03/01/11 16:21
03/01/11 16:21
Joined: Feb 2011
Posts: 26
J
jojo1995 Offline OP
Newbie
jojo1995  Offline OP
Newbie
J

Joined: Feb 2011
Posts: 26
thank you
it is work but it is not stop at the wall like "c-move"

Re: PhysX move object?? [Re: jojo1995] #361190
03/01/11 16:25
03/01/11 16:25
Joined: Jan 2011
Posts: 797
Da wo du nicht bist! Muhahaha!
xxxxxxx Offline
User
xxxxxxx  Offline
User

Joined: Jan 2011
Posts: 797
Da wo du nicht bist! Muhahaha!
huh? is the wall a physXent. physXents wont stop at a non-PhysX_ent. that was your last problem with the ball, too!
xxxxxxx


Es ist immer wieder erstaunlich, dass Leute die riesen Scripte schreiben die einfachsten sachen nicht können zb. mich mit SIEBEN x zu schreiben! tongue
Re: PhysX move object?? [Re: xxxxxxx] #361192
03/01/11 16:31
03/01/11 16:31
Joined: Feb 2011
Posts: 26
J
jojo1995 Offline OP
Newbie
jojo1995  Offline OP
Newbie
J

Joined: Feb 2011
Posts: 26
what??? i don't know you
plz help me

Re: PhysX move object?? [Re: jojo1995] #361194
03/01/11 16:57
03/01/11 16:57
Joined: Jan 2011
Posts: 797
Da wo du nicht bist! Muhahaha!
xxxxxxx Offline
User
xxxxxxx  Offline
User

Joined: Jan 2011
Posts: 797
Da wo du nicht bist! Muhahaha!
for your walls:
Code:
pXent_settype(wall,PH_RIGID,PH_CONVEX/POLY);


please look at the manual and the physX tutorial in the workshops wink
xxxxxxx


Es ist immer wieder erstaunlich, dass Leute die riesen Scripte schreiben die einfachsten sachen nicht können zb. mich mit SIEBEN x zu schreiben! tongue
Re: PhysX move object?? [Re: xxxxxxx] #427657
08/11/13 17:14
08/11/13 17:14
Joined: Apr 2012
Posts: 106
G
GaniX Offline
Member
GaniX  Offline
Member
G

Joined: Apr 2012
Posts: 106
mmmm sorry interrupt but read this post and i can not resist to do the next question:

hello people .
i have the next problem
i try to make a real physical move off the object (for example a box),when i shoot, i use this code to do that :

Code:
if(c_trace(..))
{
	if(you)
	{
		if(you.skill23 == 1337)
		{
			VECTOR vForce;
			vec_set(vForce, vector(100, 0, 0));
			vec_rotate(vForce, pTraceHit.rotation);
			pXent_addforceglobal(you, vForce, hit.x);
		}
	}



its work fine, but i have a new problem:

when i shoot the box can move trought the wall or floor, i read something about use the pX_setccd and pXent_setccdskeleton;then i put on the main this physX_load(); and in the acction of box this pX_setccd ( 1 );
pXent_setccdskeleton( box, vector(0, 0, 0), 1 );to make vertex colision, and then i test, but the problem is continues.
help pls !!!!
thank

note:i post this in other site of the forum... im sorry but i had no idea this section exist. i have no internet in my house and i can not see this before


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