Skip to content

Reading PhysicsRayQueryParameters3D.Exclude from C# causes Godot to exit #67691

@rhofour

Description

@rhofour

Godot version

4.0.beta3.mono

System information

Fedora 36

Issue description

Reading PhysicsRayQueryParameters3D.Exclude appears to cause Godot to simply exit. Setting it to a new value doesn't, actually casting rays doesn't, but reading or modifying it does. Godot simply exits without any sign of an error.

This appears to be a C# issue. Doing something equivalent in GDScript works correctly.

Steps to reproduce

  1. Create a 3D scene
  2. Add this to any node:
public override void _PhysicsProcess(double delta)
{
	var rayParams = PhysicsRayQueryParameters3D.Create(
		from: new Vector3(0.0f, 0.0f, 0.0f),
		to: new Vector3(1.0f, 1.0f, 1.0f));
	GD.Print(rayParams.Exclude); // This line is the problem.
}
  1. Run the scene and watch as it immediately exits (without throwing any errors).

Minimal reproduction project

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions