How to properly use a callback for eventlistener? #303
Unanswered
patrikpatrik
asked this question in
Q&A
Replies: 1 comment 1 reply
-
As described here in the manual, you need to create your own class that inherits from the rp3d::EventListener class. Then, you need to override the You can find more information about what is inside the CallbackData here in the API reference. Let me know if something is not clear. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, Im sorry for asking this but I'm confused on how to create this custom event listener? I've read the manual several times but still dont understand it.
If I have an object that's falling to hit a plane and want to determine if the collision occurred, how would I create a callback for that? It says to use
const CollisionCallback::CallbackData&
but how exactly do I instantiate this to my capsule object falling and hitting my plane:?Beta Was this translation helpful? Give feedback.
All reactions