So Manual states, There are two ways to get the state of a sensor:
1. b2Contact::IsTouching
2. b2ContactListener::BeginContact and EndContact
I am using GetContactList() for normal bodies instead of setting up the b2ContactListener since only contacts of some bodies are important to me.
How Can I avoid b2ContactListener for the Sensors as well? How to use isTouching()? 😕
1. b2Contact::IsTouching
2. b2ContactListener::BeginContact and EndContact
I am using GetContactList() for normal bodies instead of setting up the b2ContactListener since only contacts of some bodies are important to me.
How Can I avoid b2ContactListener for the Sensors as well? How to use isTouching()? 😕