Skip to content

isSensor *after* b2CreateXYZShape? #891

Answered by erincatto
Daigoro96 asked this question in Q&A
Discussion options

You must be logged in to vote

Events get weird if something stops being a sensor. Consider the end touch event:

struct b2SensorEndTouchEvent
{
  b2ShapeId sensorShapeId;
  b2ShapeId visitorShapeId;
};

I have two choices that both seem potentially buggy. Either I drop the event, which may confuse some users or I return the event but now the sensorShapeId is not a sensor.

I think I can manage the data structure issues, the main problem is the non-intuitive results.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Daigoro96
Comment options

Answer selected by Daigoro96
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants