The RigidBody is created via GDScript. It has a CollisionShape and a TestCube as childs.
The RigidBody is ray pickable
The CollisionShape has a BoxShape set as shape and the trigger is set true
I conntect the RigidBody to mouseenter and mouseexit
When i made the same via the IDE it was working but not via GDScript.
What did i miss?
here the Code:
var settlement_rigid = RigidBody.new()
var settlement_shape = CollisionShape.new()
var settlement_body = TestCube.new()
var shape = BoxShape.new()