Pottus/ColAndreas

[to do] Get all objects contacting an object.

Crayder opened this issue · 2 comments

This will be like CA_ContactTest, but instead of returning whether or not a model would contact any world object this function would return all of the objects [if any](that are added to the manager) that would be contacted.

CA_GetContactingObjects? CA_GetOverlappingObjects?

  • Create a ghost object
  • Create a btAlignedObjectArray
  • Use getOverlappingPairs
  • Loop through size of array
  • Check if each object is in the manager
  • If it is add it to the return array

Perhaps also add a function to test whether to objects overlap, same principle.

cimulator has this feature already, in a simpler way in my opinion.
https://github.com/codectile/cimulator/blob/master/src/CCollision.h#L34

That's a completely different concept though. I want to know each object's information on the pawn side.