Skip to content
  • Sponsor godotengine/godot-docs

  • Notifications You must be signed in to change notification settings
  • Fork 3.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

Undocumented entry in get_rest_info()'s dictionary #10795

Open
MuffinInACup opened this issue Mar 24, 2025 · 1 comment
Open

Undocumented entry in get_rest_info()'s dictionary #10795

MuffinInACup opened this issue Mar 24, 2025 · 1 comment

Comments

@MuffinInACup
Copy link

Your Godot version:
4.4 (issue relevant to 4.3, 4.2, 4.1 and 4.0)

Issue description:
DirectSpaceState's method get_rest_info() returns a dictionary that, apart from entries listed in the documentation, also contains "collider" key, with reference to the colliding body node as its value.

URL to the documentation page:
https://docs.godotengine.org/en/4.3/classes/class_physicsdirectspacestate3d.html#class-physicsdirectspacestate3d-method-get-rest-info

@AThousandShips
Copy link
Member

It does not, it returns a collider_id entry, but that's it, see the code that returns it:

	r["point"] = sri.point;
	r["normal"] = sri.normal;
	r["rid"] = sri.rid;
	r["collider_id"] = sri.collider_id;
	r["shape"] = sri.shape;
	r["linear_velocity"] = sri.linear_velocity;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants