-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
Add instructions to get shape of RayCast2D/3D
#83735
Conversation
f083489
to
e754f94
Compare
For the 2D case I'm not sure if it can collide with |
Realized it was not a direct connection, updating the instructions |
I'm unsure what the functional difference between the
|
e754f94
to
3026a09
Compare
3026a09
to
d184269
Compare
doc/classes/RayCast2D.xml
Outdated
var shape = target.shape_owner_get_owner(owner_id) | ||
[/gdscript] | ||
[csharp] | ||
var target = GetCollider(); // A CollisionObject2D. |
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.
Unfamiliar with C# here so unsure if this needs a cast or something
RayCast2D/3D
RayCast2D/3D
d184269
to
1b7bbbc
Compare
1b7bbbc
to
8bca79c
Compare
LGTM (also not 100% sure about the C#, maybe @raulsntos wants to confirm) |
Thank you @raulsntos! Will fix later today (my power is off at the moment so can't work lol) |
Removed the |
Adds details on how to get the intersected shape
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.
The C# looks good to me. Thanks!
Thanks! |
Thank you! |
Cherry-picked for 4.2.2. |
Cherry-picked for 4.1.4. |
Adds details on how to get the intersected shape