how do I detect collision without colliders I want to make lava but I want to detect when you are in it to take damage so I want to know how I detect collision without colliders?
You can tick the box “Is Trigger” in the collider component to make it permeable (both 2D and 3D; doesn’t matter what type of collider).
However, if you truly don’t want to use a collider, here’s an idea for 2D with box colliders (you could maybe check the positions like this):
if(Mathf.Abs(transform.position.x - target.position.x) < transform.scale.x / 2f + target.scale.x / 2f ||
Mathf.Abs(transform.position.y - target.position.y) < transform.scale.y / 2f + target.scale.y / 2f)
// Collision!
For 2D with non-box colliders or for 3D I have absolutely no idea (if it’s even possible).
Hope this helps!
@TBNRSKULL