|
Kinematic has no collision detection?
#373587
06/11/11 10:50
06/11/11 10:50
|
Joined: Jun 2006
Posts: 379 Flevoland, 5 meters under wate...
Roel
OP
Senior Member
|
OP
Senior Member
Joined: Jun 2006
Posts: 379
Flevoland, 5 meters under wate...
|
Hello,
I have a kinematic physX entity that seems to not use collision detection. It has to move on entities that can form a slope, but it moves through them. I use pXent_move for movement and pXent_rotate for the rotation. The moving entity is a PH_RIGID with a PH_CAPSULE hull, and the NX_BF_KINEMATIC flag turned on. the static entities are also registered, as PH_STATIC with a PH_POLY hull.
using a PH_CHAR mode is also not an option, as I would like to toggle the NX_BF_KINEMATIC flag sometimes. This is to switch between pure physics and a controlled character.
does anybody have a clue, or a working example? I can post code, but maybe one has a solution already.
[edit]
3Run seemed to have a similar question before, so I better read that topic.
Last edited by Roel; 06/11/11 20:15.
|
|
|
Re: Kinematic has no collision detection?
[Re: Roel]
#373812
06/13/11 10:41
06/13/11 10:41
|
Joined: Jun 2006
Posts: 379 Flevoland, 5 meters under wate...
Roel
OP
Senior Member
|
OP
Senior Member
Joined: Jun 2006
Posts: 379
Flevoland, 5 meters under wate...
|
I have tried the example for pXent_move, that is in the manual. the Kinematic flag still seems to do no collission detection. link to manual When I change: pXent_move(actor,actor.skill4,NULL); into pXent_move(actor,actor.skill4,vector(0,0,-1)); the entity goes straight trough the terrain. Is this a bug?
Last edited by Roel; 06/13/11 10:41.
|
|
|
Re: Kinematic has no collision detection?
[Re: TehV]
#373822
06/13/11 11:51
06/13/11 11:51
|
Joined: Jun 2006
Posts: 379 Flevoland, 5 meters under wate...
Roel
OP
Senior Member
|
OP
Senior Member
Joined: Jun 2006
Posts: 379
Flevoland, 5 meters under wate...
|
the manual says it performs collision detection copy & paste from the manual: Kinematic control (NX_BF_KINEMATIC) can be activated for dynamic physics entities. A kinematic controlled entity is not affected by any force, but can be moved with collision detection through pXent_move. It is an alternative to a character controller (PH_CHAR).
|
|
|
Re: Kinematic has no collision detection?
[Re: TehV]
#373831
06/13/11 13:38
06/13/11 13:38
|
Joined: Aug 2009
Posts: 1,438 Spain
painkiller
Serious User
|
Serious User
Joined: Aug 2009
Posts: 1,438
Spain
|
I haven't tried with Kinematic, but with PH_CHAR collision detection works fine
3D Gamestudio A8 Pro AMD FX 8350 4.00 Ghz 16GB RAM Gigabyte GeForce GTX 960 4GB
|
|
|
|