Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/25/24 10:20
Trading Journey
by howardR. 04/24/24 20:04
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (EternallyCurious, Quad, vicknick), 700 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
physical #427655
08/11/13 16:40
08/11/13 16:40
Joined: Apr 2012
Posts: 106
G
GaniX Offline OP
Member
GaniX  Offline OP
Member
G

Joined: Apr 2012
Posts: 106
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

Last edited by GaniX; 08/11/13 16:42.
Re: physical [Re: GaniX] #427689
08/12/13 13:06
08/12/13 13:06
Joined: Jul 2000
Posts: 27,982
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,982
Frankfurt
Yes, if the object moves faster than its own size, then you must use CCD. I have not much experience with CCD, so I can't give good advices here, but I would use a collision shape, not a single point.

Re: physical [Re: jcl] #427804
08/13/13 22:07
08/13/13 22:07
Joined: Apr 2012
Posts: 106
G
GaniX Offline OP
Member
GaniX  Offline OP
Member
G

Joined: Apr 2012
Posts: 106
ok i use convex and run fine, and i do biger size off the model and run fine also i use convex

Last edited by GaniX; 08/13/13 22:23.

Moderated by  old_bill, Tobias 

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