godotengine / godotengine/godot-docs

Specify that `get_contact_local_normal` is in global space

Open
#10,678 1 comment 8 reactions 0 assignees View on GitHub
area:class reference topic:physics
Dominant language
reStructuredText
Stars
5.7k
Forks
3.8k
Avg merge
1d 20h
Merged PRs (30d)
25

Description

**Your Godot version:** 4.3

**Issue description:**
In the documentation of the `PhysicsDirectBodyState3D`, could it be possible to specify that the [get_contact_local_normal](https://docs.godotengine.org/en/stable/classes/class_physicsdirectbodystate3d.html#class-physicsdirectbodystate3d-method-get-contact-local-normal) method returns the normal in global space ? I wasted some time thinking "Oh there is local in the name, then it should returns the normal in local space", until I got some problem with the results, and also read the [get_contact_local_position](https://docs.godotengine.org/en/stable/classes/class_physicsdirectbodystate3d.html#class-physicsdirectbodystate3d-method-get-contact-local-position) doc which specify it is in global coordinate
It could be updated for `PhysicsDirectBodyState2D` too I suppose.

**URL to the documentation page :**
https://docs.godotengine.org/en/stable/classes/class_physicsdirectbodystate3d.html

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.