Skip to content

Rigid body notification when Hitting Controller (Question?) #47

@Eshku

Description

@Eshku

More of a question due to my lack of understanding.

I have a controller for a player (probably will have more for creatures), I am using PxUserControllerHitReportImpl to allow player to push rigid bodies, this part works perfectly fine, since it works when player is moving, but there is another side to controller collision detection - I also need to know when controller is getting "hit" by a rigid body - be to random box falling from top or a projectile of some sort.

I tried setting up PxSimulationEventCallbackImpl, which detects when rigid bodies collide with each other, but it does not detect collisions with controllers, meaning they do not send any notifications (and also just passing through).

I also tried to make custom filter shader (while also having no idea what I am doing) and it seems like...we cannot do that - is that correct or is it me, messing it up?

So like...how can I get notification when rigid body "hits" controller?

I could use rigid body and control it instead of controller, but I'd prefer to stick with kinematic controller.
I could also use trigger shape and get notified this way - that doesn't seem that bad for performance...but doesn't seem right...

Am I missing something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions