-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Make OverlapChecker an interface #5324
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
Conversation
/// Perceive the latest grid status. Call OverlapBoxNonAlloc once to detect colliders. | ||
/// Then parse the collider arrays according to all available gridSensor delegates. | ||
/// </summary> | ||
void Update(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this just be called Perceive
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PerceiveGrid
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, we can discuss the naming in slack if you'd like.
Proposed change(s)
Create an IOverlapChecker interface and make BoxOverlapChecker implement it.
This allows other collider overlap strategy like
OverlapSphereNonAlloc
orOverlapCapsuleNonAlloc
.Useful links (Github issues, JIRA tickets, ML-Agents forum threads etc.)
https://jira.unity3d.com/browse/MLA-1934
Types of change(s)
Checklist
Other comments