Jump to content
  • Advertisement
Sign in to follow this  
neatdev

Collision report when an actor/shape hits a character controller in PhysX

This topic is 3255 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Does anyone know how to get a collision report when an actor/shape hits a character controller in PhysX? I am getting collision reported between a character controller and a shape and also between a character and another character. This is done by deriving from NxUserControllerHitReport and implementing onShapeHit() and onControllerHit(). The collisions are reported when I move the character against a ball or a wall, exactly as stated in the documentation. I am also getting collision reported between two actors by deriving from NxUserContactReport and implementing onContactNotify(). But what can I do to get a collision report when the character is standing still and an actor/shape is hitting? The collisions DO work. I just do not get any report back. This is for a hobby FPS project I am creating. My idea was to use an actor/shape for enemy bullets and a character capsule controller for the player.

Share this post


Link to post
Share on other sites
Advertisement
It seems like I found the answer myself.
I had to get the actor from the NxController object and set some collision group for that actor as well.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!