Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[to do] Get all objects contacting an object. #16

Open
Crayder opened this issue May 6, 2016 · 2 comments
Open

[to do] Get all objects contacting an object. #16

Crayder opened this issue May 6, 2016 · 2 comments

Comments

@Crayder
Copy link
Collaborator

Crayder commented May 6, 2016

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.

@codectile
Copy link
Contributor

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

@Crayder
Copy link
Collaborator Author

Crayder commented Jun 18, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants