onCollision version with parameters that are "backward compatible" with ... #48
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
There is an open question as to how to best handle onCollision in behaviors.
Say two objects A and B collide. T2D has the option to handle onCollision with either the Scene or with the objects themselves. If handling with the scene, you have
where you get both objects, of course. If handling with the objects themselves, you have
The called object is objectA or
%this. The question is if handling with behaviors, what do you prefer? Original it wasThat is, to get objectA, you use
%this.owner. A recent experiment changed it toThat is, you also get the owner (objectA) directly as
%parentObjectA.Opinions? Don't cares?
The current pull request would switch it back to 1) above. Canceling this pull request would keep it at the new 2).