Using Bullet, on a Spatial object I'm trying to do a ray cast with PhysicsDirectSpaceState
var spaceState = self.getWorld().directSpaceState
The above generates an error from godotnim.nim. asNimGodotObject calls newNimGodotObject with the name returned from godotinternal.nim#getClassNameRaw().
BulletPhysicsDirectSpaceState is not part of the api.json.
This isn't the fault of godot-nim. The godot engine doesn't export it properly. The work around is modify godottypes.nim with a new type and register the class.
BulletPhysicsDirectSpaceState* = ref object of PhysicsDirectSpaceState
...
registerClass(BulletPhysicsDirectSpaceState, "BulletPhysicsDirectSpaceState", true)
Using Bullet, on a Spatial object I'm trying to do a ray cast with
PhysicsDirectSpaceState
The above generates an error from
godotnim.nim
.asNimGodotObject
callsnewNimGodotObject
with the name returned fromgodotinternal.nim#getClassNameRaw()
.BulletPhysicsDirectSpaceState
is not part of the api.json.This isn't the fault of godot-nim. The godot engine doesn't export it properly. The work around is modify
godottypes.nim
with a new type and register the class.I've bugged this https://github.com/godotengine/godot/issues/48752 and created an engine PR to fix.