Comments (5)
Ah yes, that is because there is no ArgCast for doubles.
I'll add it soon
from godot-cpp.
The problem is that doubles aren't supported in Variant, so it's not useful to use them whenever you interface with Godot. Not much we can do about it here in the bindings :(
from godot-cpp.
Oh, turns out that there is a problem here actually. I'll look into this today.
from godot-cpp.
Actually the problem aren't the doubles, the problem are floats. Godot ptrcall expects all floating point numbers to be passed via double *
, even in the case of floats.
This is fixed on the nativescript-1.1 branch, by the commit 2dbc73f.
If there's much demand then this is easy to cherry pick, but I hope to get the nativescript-1.1 branch into a stable state very soon anyway.
from godot-cpp.
Seeing nativescript 1.1 has now been merged into master I'm closing this.
from godot-cpp.
Related Issues (20)
- Unable to catch error message HOT 1
- long Link times for initial build, or modifications to the api, please support the mold linker
- Where is BIND_THEME_ITEM HOT 4
- using gdextension:register a class extend TileMap,add some layers,then delete a layers ,consle log:"editor/editor_inspector.cpp:1742 - Could not find a function to move arrays elements for class my tileMap. Register a move element function using EditorData::add_move_array_element_function" HOT 3
- Instantiate class using its String name HOT 2
- Crash when trying to call virtual method without return value
- BitField::clear_flag() doesn't compile
- Extending a class(A) from class(B) from a GDExtension(C) defined class results in Could not found(B)
- Basis is wrong, Different results in GDExtension vs GDScript HOT 3
- Runtime classes cannot be cast_to from non runtime classes HOT 2
- Potential issues with Android builds? HOT 1
- When register a Abstract Class using GDREGISTER_CLASS(), compiled without error HOT 1
- `Control::gui_input` is not exposed HOT 3
- `GDCLASS` requires the exposed class name to match the C++ class name. HOT 4
- Using vscode can't debug the extension in windows c++ HOT 1
- Not declare _bind_methods() may be cause not call "_ready()" HOT 5
- Mac Editor Crash When Exposing Resource in Inspector from GDExtension HOT 4
- is_finite function missing from Basis, Vector2, Vector3, etc.(about 11 classes should have it) HOT 3
- New godot node TileMapLayer not export HOT 2
- Global godot-type variable cause crash and load gdextension failed HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from godot-cpp.