Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (TipmyPip), 18,633 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
pXent_settriggerflag Problems #351868
12/29/10 00:00
12/29/10 00:00
Joined: May 2006
Posts: 148
Latvia
MTD Offline OP
Member
MTD  Offline OP
Member

Joined: May 2006
Posts: 148
Latvia
Hello.

Trying to make something with PhysX but have some problems.
The thing is that i have two physx entity's (box and a plate)
Box is Dynamic and plate is Static entity with "pXent_settriggerflag"

The box falls on the plate and calls the trigger event - That is ok, but the box falls trough the plate ? (Why and how is it possible that the box falls trough the plate ???)

Maybe someone had already this problem?
Thank You...

Re: pXent_settriggerflag Problems [Re: MTD] #355121
01/24/11 19:14
01/24/11 19:14
Joined: Sep 2003
Posts: 648
Switzerland
snake67 Offline
User
snake67  Offline
User

Joined: Sep 2003
Posts: 648
Switzerland
Same for me. I tried to have weapons as physics objects. It only works when set to PH_STATIC... Dont know what to do.

I feel really very bad. Just updated from A7 to A8 and nothing works like before.

Re: pXent_settriggerflag Problems [Re: MTD] #355123
01/24/11 19:36
01/24/11 19:36
Joined: Oct 2004
Posts: 900
Lgh
rojart Offline
User
rojart  Offline
User

Joined: Oct 2004
Posts: 900
Lgh
Originally Posted By: MTD
(Why and how is it possible that the box falls trough the plate ???)

Maybe someone had already this problem?
Thank You...


Gamestudio Physics - Frequently Asked Questions

Quote:
Q: My objects fall through the floor, or penetrate walls.
A: This happens when objects or walls are smaller than the distance covered in one frame cycle. Either make them bigger, or use continous collision detection.

http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Main=43215&Number=354899#Post354899




Regards, Robert

Quote
Everything should be made as simple as possible, but not one bit simpler.
by Albert Einstein

PhysX Preview of Cloth, Fluid and Soft Body

A8.47.1P
Re: pXent_settriggerflag Problems [Re: rojart] #355127
01/24/11 20:05
01/24/11 20:05
Joined: May 2006
Posts: 148
Latvia
MTD Offline OP
Member
MTD  Offline OP
Member

Joined: May 2006
Posts: 148
Latvia
Thanks for bringing this back to memory.
The best of all this: You need to add 1 in "bool dynamic_CCD" flag tongue (somehow missed that)

pXent_setccdskeleton(my, nullvector, 1);

Re: pXent_settriggerflag Problems [Re: MTD] #355174
01/25/11 03:51
01/25/11 03:51
Joined: Sep 2003
Posts: 648
Switzerland
snake67 Offline
User
snake67  Offline
User

Joined: Sep 2003
Posts: 648
Switzerland
Did this work for you? It doesnt for me. The object is still falling through the floor. Here is the code i use:

Code:
void main()
{
	physX_open();
	pX_setgravity(vector(0, 0, -9.81));
	pX_setccd(1);
	level_load("...");
}

action physics_object()
{
	pXent_settype(me, PH_RIGID, PH_BOX);
	pXent_setccdskeleton(me, vector(0.2, 0.2, 0.2), 1);
	pXent_settriggerflag(me, NX_TRIGGER_ON_ENTER, 1);
}



I am certanly making a simple mistake... Does someone have any suggestions? (Thanks)

Re: pXent_settriggerflag Problems [Re: snake67] #355185
01/25/11 07:22
01/25/11 07:22
Joined: May 2006
Posts: 148
Latvia
MTD Offline OP
Member
MTD  Offline OP
Member

Joined: May 2006
Posts: 148
Latvia
Hmm interesting:
Tested right now with all that parameters, but still the box falls trough static physic object frown

Re: pXent_settriggerflag Problems [Re: MTD] #355230
01/25/11 16:36
01/25/11 16:36
Joined: Sep 2003
Posts: 648
Switzerland
snake67 Offline
User
snake67  Offline
User

Joined: Sep 2003
Posts: 648
Switzerland
Thanks for testing...


Moderated by  HeelX, Spirit 

Gamestudio download | 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