Improved ray shape (2D and 3D) by addiing the possibility to act as r… #16530
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.
…egular shape
As you know the ray_shape is special shape that should be used only for rigidbody in character mode. (and this is a bit restricting IMO)
With this PR we will be able to tell the engine to handle the special ray_shape as a regular shape in order to allow us to use it anywhere.
In order to active it I've added the parameter
slips_on_slope
in the ray_shape that when true allow the shape to behave as all other shapes (basially it will return the correct normal) [By default this parameter is set to false]I've i'mplemented it on 2D, 3D godot physics and 3D Bullet physics