godotengine / godotengine/godot-docs
Clarify input for `apply_torque` and `apply_torque_impulse`
- Dominant language
- reStructuredText
- Stars
- 5.7k
- Forks
- 3.8k
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 25
Description
**Your Godot version:**
4.1.2
**Issue description:**
These methods take a `Vector3` parameter, but it's not specified what this vector means exactly.
Based on some quick experiments I'm guessing it's something like the following:
- the direction of the vector defines the axis to rotate around
- the direction of rotation around the axis is clockwise looking in the direction of the axis (follows the right hand rule?)
- the magnitude of the vector specifies the amount of torque
Is that correct? If so I can try making a PR to add it to the function descriptions
**URL to the documentation page (if already existing):**
- https://docs.godotengine.org/en/stable/classes/class_physicsdirectbodystate3d.html#class-physicsdirectbodystate3d-method-apply-torque
- https://docs.godotengine.org/en/stable/classes/class_rigidbody3d.html#class-rigidbody3d-method-apply-torque
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.