Should I get a"trigger_response" when the other object is deleted?

Happens that in a middle of collision of Trigger A with a object B, B needs to be deleted.
But A is depending on the message.enter == false to know when the overlap has ended.

Happens that when the object containing the Trigger is deleted, I don’t get any “trigger_response”.

That’s fine by design of the engine?
Do I need to find a workaround?

The case is simple, I’m counting the overlaps, and I need to know when the Trigger is not overlapping with anyone else:

if message_id == hash("trigger_response") then
	if message.enter then
		self.overlap_counter = self.overlap_counter + 1
		print("enter")
	else
		self.overlap_counter = self.overlap_counter - 1
		print("leave")
	end	
end

UPDATE: Work with “disable”.
If I disable the object instead of deleting it, I get the exit message on the Trigger.

Workaround maybe is to delete it later, 1 or 2 frames later.

1 Like