Closed emanisgrand closed 6 months ago
This will report 10 collisions per frame
max_contacts_reported
[default: 0]
set_max_contacts_reported(value)
setter
get_max_contacts_reported()
getter
The maximum number of contacts that will be recorded. Requires a value greater than 0 and contact_monitor
to be set to true
to start to register contacts. Use get_contact_count()
to retrieve the count or get_colliding_bodies()
to retrieve bodies that have been collided with.
Note: The number of contacts is different from the number of collisions. Collisions between parallel edges will result in two contacts (one at each end), and collisions between parallel faces will result in four contacts (one at each corner).
Used the boost project as a guide.
This can be resolved anywhere. A project can be created to test this very quickly.