godotengine / godotengine/godot-cpp

Missing functions to have parity with Godot modules

Open
#1,604 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
C++
Stars
2.7k
Forks
809
Avg merge
1d 3h
Merged PRs (30d)
8

Description

### Godot version

4.3-stable

### godot-cpp version

4.3-stable

### System information

N/A

### Issue description

Working through building a GDExtension that provides a custom Node3D, along with an EditorPlugin, I've found the following functions that are missing from godot-cpp that are available to modules inside Godot.

* `SceneTree.get_debug_collision_material()`
- helpful for drawing collision shapes
- no other way found to get this from the godot engine
* `NavigationServer3D.get_debug_navigation_edge_connections_material()`
- same
* `ED_SHORTCUT()`
- easiest way to create configurable keyboard shortcuts in the editor
- not currently possible: https://github.com/godotengine/godot-proposals/issues/2024
* `InputEventKey::create_reference()`
- significantly reduces the amount of code needed to create `ED_SHORTCUT()` work-alike by hand
* `PhysicsMaterial.computed_friction()` & `PhysicsMaterial.computed_bounce()`
- relatively simple to reproduce, but doing so assumes the internals will never change

### Steps to reproduce

N/A

### Minimal reproduction project

N/A

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.