Gamestudio Links
Zorro Links
Newest Posts
blogherenowcenter
by 3s05bmmc. 06/05/24 06:08
New FXCM FIX Plugin
by flink. 06/04/24 07:30
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 (3s05bmmc), 745 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19057 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 | 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