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.
Suggestion cannot be applied right now. Please check back later.
Description
A collection of small tools for 3D that are missing in the core functionality.
Tools For 3D includes.
Orientation of the 3D object can also be set.
This check is rudimentary for mostly upright objects.
The check works properly on Objects rotated only on Z-axis.
To get the the check against MODEL correct, the Origin needs to be set on bottom middle.
Perfect for checking collision with 3dBoxes used for floors, walls, bridges, and upright obstacles like characters, furniture, pillars, etc.
This check is rudimentary for mostly upright objects.
This check works properly on Objects rotated only on Z-axis.
To get the the MODEL collision correct, the Origin needs to be set on bottom middle.
Or you use a hidden 3D Box as a collision mask for the model, just like done sometimes with 2d sprites.
Combines and replaces Extension suggestions #1039 #1046 #1048
How to use the extension
Put object around a 3D Position.
Test if the Position in 3d to is inside a 3D Object.
Distance Between 3D Positions.
Tilt Between 3D Positions.
Check collision between 3D Objects.
Use for checking collision with 3dBoxes used for floors, walls, bridges, and upright obstacles like characters, furniture, pillars, etc.
This check is rudimentary for mostly upright objects.
This check works properly on Objects rotated only on Z-axis.
To get the the MODEL collision correct, the Origin needs to be set on bottom middle.
Or use a hidden 3D Box as a collision mask for the model, just like done sometimes with 2d sprites.
Checklist
What tier of review do you aim for your extension?
Reviewed
Example file
ToolsFor3DExample.zip
Extension file
ToolsFor3D.zip
EDIT:
The example now includes all extension usage as well as grabbing, moving and dropping objects.
Link to example to run in gd.games.
https://gd.games/instant-builds/3341ba35-f62d-46c6-946e-fb883ab1d92c