-
Notifications
You must be signed in to change notification settings - Fork 57
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
Collision Between 3D Objects extension #1048
Conversation
Thank you for submitting an extension. I guess intervals intersection can be checked with a simpler formula like this one: aMin < bMax and aMax > bMin I have some concerns:
Is the use case to check collision with walls on several floors? |
I've added a notification on the description that to have proper 3d Model collision working the origin should be set on bottom middle of the object.
I added also a notification to use hidden 3d boxes as collision boxes as done sometimes with 2d Sprites.
This is true, I added a notification to keep the models upright rotated only on Z-axis and a use case examples.
This is great for checking if the separate action is needed.
It doesn't check for X/Y inside the extension but the 2d collision and then if the object are colliding on z-axis at any part.
|
c292571
to
7459fd0
Compare
My suggestion was to have a condition "BoxA intersect on Z with BoxB", "BoxA is on the same Z level as BoxB" or another wording to make it clear that it's only a naive checks of on Z positions and not a real collision detection. |
This extension is included in the collection of extensions called ToolsFor3D in #1050 |
I credited you on this extension: If you have time to test it, please tell me if you see improvements that could be made. |
I'll take a look at it later this evening... |
I also credited you on this extension: If you have time to test it, please tell me if you see improvements that could be made. |
Since the other extension was merged, I'm closing this PR. |
Description
This extensions checks for collisions between 3d objects as condition and returns true if they are colliding.
How to use the extension
Check the collision of 3D Objects and returns true if they are colliding so you can act accordingly like separate two objects action etc.
Checklist
What tier of review do you aim for your extension?
Reviewed
Example file
CollisionBetween3DObjectsExample.zip
Extension file
CollisionBetween3DObjects.zip
EDIT: Added more information on description on the usage, limitations and examples of the extension.