godotengine / godotengine/godot-docs

Place notes about Doubles in methods for C# users

Open
#7,975 4 comments 0 reactions 0 assignees View on GitHub
area:class reference discussion topic:dotnet
Dominant language
reStructuredText
Stars
5.7k
Forks
3.8k
Avg merge
1d 20h
Merged PRs (30d)
25

Description

**Your Godot version:**4.1-Mono

**Issue description:**
In the Method declaration, `float` is the type listed for the type of delta for both the `_process` and `_physics_process` method. I discovered the issue when writing C# code for the `_Process` C# binding. It uses the type `double` for delta in the C# binding. I assumed they are of the same type at first glance. It wouldn't occur normally for me to click on `float` because I know what a float is. There should have been a note about this for C# users that wouldn't think about checking the documentation for the `float` type. Yes, while it does list in the documentation about `float`s; it's inconvenient.

**URL to the documentation page:** https://docs.godotengine.org/en/stable/classes/class_node.html#class-node-method-physics-process

If you know how to fix the issue you are reporting please
consider opening a pull request. We provide a tutorial on
using git here: https://docs.godotengine.org/en/stable/community/contributing/pr_workflow.html,
writing documentation at https://docs.godotengine.org/en/stable/community/contributing/docs_writing_guidelines.html
and contributing to the class reference here: https://docs.godotengine.org/en/stable/community/contributing/updating_the_class_reference.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.