How can I make a variable change its value when a rigid object enters an area 3d?

Godot Version

4.4

Question

How do I make a variable INSIDE the character script change when a rigid body enters an area3D?

Godot doesnt give the option to detect a rigid object, how do I make this?

I’m confused by your question. body_entered is emitted when something enters the Area3D. RigidBody3D inherits from PhysicsBody3D, so the signal is emitted when a RigidBody3D enters the area.

Does your script listen to that signal? If yes, does your RigidBody3D have a collision shape?

Ok ok my bad, I thought that in the signal I had to say WHICH body lol.
Thankies

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.