You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a small question I can't seem to find a lot of information on.
Is it normal for character controllers to not report collisions with trigger shapes?
To give a bit more context now. I've created a simple character controller, and simple static sphere shape. If I leave the shape with PxShapeFlag::eSIMULATION_SHAPE = true and PxShapeFlag::eTRIGGER_SHAPE = false I get the onShapeHit(const PxControllerShapeHit& hit) callback with it. If I just swap the shape flags and make the sphere a trigger I no longer get any callback.
I've seen a solution of creating such "character only triggers" is to use obstacles but I keep wondering if this is the normal behavior or is it I am doing something wrong?
Any tips would be appreciated.
The text was updated successfully, but these errors were encountered:
For me a trigger shape is like an intangible "sensor" zone so I don't understand why you would want to collide with them, but I suppose you can probably re-enable contacts with triggers by commenting out these lines.
I guess what I expected is not to have collisions (in term of reactivity, contact response) with them but get the overlap touch callback to use them as triggers for character controllers.
We'll definitely give your suggestion a try as I am currently having triggers which can only be activated by character controllers. Now I'm using normal static actors and just removing them when I get the collision contact but it's not ideal performance-wise.
The character controllers create a regular PxActor under the hood, that should get reported by triggers. It's only the CCT module that disables collisions with trigger obstacles, but once the CCT is in a trigger zone its PxActor/PxShape should get reported by the trigger - I think (haven't double-checked).
Hello,
I have a small question I can't seem to find a lot of information on.
Is it normal for character controllers to not report collisions with trigger shapes?
To give a bit more context now. I've created a simple character controller, and simple static sphere shape. If I leave the shape with PxShapeFlag::eSIMULATION_SHAPE = true and PxShapeFlag::eTRIGGER_SHAPE = false I get the
onShapeHit(const PxControllerShapeHit& hit) callback with it. If I just swap the shape flags and make the sphere a trigger I no longer get any callback.
I've seen a solution of creating such "character only triggers" is to use obstacles but I keep wondering if this is the normal behavior or is it I am doing something wrong?
Any tips would be appreciated.
The text was updated successfully, but these errors were encountered: