I’m having trouble with collisions. I looked on the forums and found that i should be using
SubscribeToEvent(_node, E_NODECOLLISION, URHO3D_HANDLER(Main, HandleCollision));
but how do i tell which rigidbody has collided with the object?
Also can someone tell me why when i try and put the SubscribeToEvent in a different class that isn’t inheriting from Sample it doesn’t recognize it?
If anyone else cant figure it out this worked for me
RigidBody* body = static_cast<RigidBody*>(eventData[NodeCollision::P_BODY].GetPtr());