Skip to content
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

Contact monitor can't be activated through code #349

Open
ZemyDios opened this issue Feb 23, 2025 · 0 comments
Open

Contact monitor can't be activated through code #349

ZemyDios opened this issue Feb 23, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@ZemyDios
Copy link

Description

As the title says, if you want to activate contact_monitor and/or max_contacts_reported through it won't work, you would have to activate it manually on the node.

If you activate the debug option "visible collision shapes" it will work as it should.

To Reproduce

Steps to reproduce the behavior:

This code should be enough, with the default physics engine it will print the name, not with rapier.

extends RigidBody2D

func _ready() -> void:
	contact_monitor = true
	max_contacts_reported = 1
	
	body_entered.connect(func(body: Node) -> void:
		print(name)
	)

Expected behavior

It should detect bodies if you set contact monitor in code.

Environment:

  • OS: Windows
  • Version: latest
  • Godot Version: 4.3
  • Type: 2D

rapiercollisionbug.zip

@ZemyDios ZemyDios added the bug Something isn't working label Feb 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant