Im tring to get a collision to output while allowing the objects to overlap Csharp, any ideas appreciated.

public float PlatformSpeed = 0.04f;

void OnCollisionEnter2D(Collision2D col) {
	
	if (col.collider.gameObject.tag == "Player")

		GameObject.Find("Player").transform.Translate (PlatformSpeed, 0, 0);

This is the collison script im working with, in a sense it works, atleast it runs and it does move my player, but only if the platform hits my player first, if i jump onto the platform i just sorta sit by the side of the object, the only way i know to allow them to overlap is by changing one to ‘is trigger’ but then it doesnt output, been stuck for a while now so any and all help will be much appreciated.

Hopefully you see what im trying to do, thanks for taking a look :slight_smile:

Yes you are correct, that if you want them to overlap, you need to change those colliders to Trigger Colliders. After that all you need to do is change your method
From :

void OnCollisionEnter2D(Collision2D col)

To :

void OnTriggerEnter2D(Collider2D other) { 
     //Your logic here with other.gameObject.
}