only root component's collision is being detected
I have a box component as root collision, and it's working. But now I want to add a trigger box to this actor and the trigger box's onBeginOverlap function is not being triggered. Seems like only the component's collision is being detected.
How do I make component's collision work?
asked Apr 30 '15 at 12:22 AM in C++ Programming
To make the component collision work, you can do the following:
1) Declare the Prox() function in your Actor:
//for native C++ implementation
2) Implement it :
3) Declare Proximity spheres for your collisions in your Actor:
4) In Actor’s constructor, initialize the components, attach them to root and bind the Prox() method:
5) Place your Actor in the level. Select Box components in Details tab and place them according to your needs. This should do it. Also please don’t forget to check collision settings for the Boxes (especially Generate Overlap Events flag). Hope this helped! Cheers!
answered May 01 '15 at 12:43 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here