godotengine / godotengine/godot-docs

Vector2.reflect() and Vector2.bounce() are unclear

Open
#9,948 4 comments 0 reactions 0 assignees View on GitHub
area:class reference enhancement
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:**
This issue originates from a question in the official discord. Making this issue to track it.

These should probably be clarified somehow, maybe with example vectors. Ideally illustrations could be added, but that is not typical of the docs.

Same issue might apply to Vector3.

A possible solution would be adding some info and a diagram about the difference between reflect and bounce [here](https://docs.godotengine.org/en/stable/tutorials/math/vector_math.html#reflection), then linking to it from the class ref pages if that's allowed.

**URL to the documentation page (if already existing):**
https://docs.godotengine.org/en/stable/classes/class_vector2.html#class-vector2-method-bounce
https://docs.godotengine.org/en/stable/classes/class_vector2.html#class-vector2-method-reflect
https://docs.godotengine.org/en/stable/tutorials/math/vector_math.html#reflection

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.