-
-
Notifications
You must be signed in to change notification settings - Fork 224
shape_collide and body_collide_shape from IPhysicsServer2DExtension gives compilation error #677
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This happens because we only implement |
from what i can tell, these are the pointers used which i think dont have the trait impls: *mut *const u8
*mut i32
*mut f64
*mut u8 |
Here's a ripgrep command to find pointers in the API spec, here's for version 4.4: rg '"type": ".+\*"' extension_api.json -N | sort | uniq yields: "type": "AudioFrame*"
"type": "CaretInfo*"
"type": "const Glyph*"
"type": "const uint8_t **"
"type": "const uint8_t*"
"type": "const void*"
"type": "float*"
"type": "int32_t*"
"type": "PhysicsServer2DExtensionMotionResult*"
"type": "PhysicsServer2DExtensionRayResult*"
"type": "PhysicsServer2DExtensionShapeRestInfo*"
"type": "PhysicsServer2DExtensionShapeResult*"
"type": "PhysicsServer3DExtensionMotionResult*"
"type": "PhysicsServer3DExtensionRayResult*"
"type": "PhysicsServer3DExtensionShapeRestInfo*"
"type": "PhysicsServer3DExtensionShapeResult*"
"type": "ScriptLanguageExtensionProfilingInfo*"
"type": "uint8_t*"
"type": "void*"
"type": "void*" I checked that It seems like the manual approach has worked well enough for a year, and this changes rarely enough that it's probably not worth automating. Especially since there's quite a bit of overlap between native structs and other pointer parameters, which may complicate an implementation slightly. I'd suggest:
|
The following 2 functions:
When implemented to a
IPhysicsServer2DExtension
gives the following error:The text was updated successfully, but these errors were encountered: