Horje
on collision 2d unity Code Example
on collision 2d unity
//Detects when collided with a 2D collider
//make sure to add box collider 2D and tick the is Trigger checkbox
//then create a script and add this in it
    void OnCollisionEnter2D(Collision2D col)
    {
        Debug.Log("2D Collision");
    }




Csharp

Related
Vector3.signedangle not showin singed  angle in unity Code Example Vector3.signedangle not showin singed angle in unity Code Example
c# unity camera follow player horizontal axis Code Example c# unity camera follow player horizontal axis Code Example
aabb collision with direction Code Example aabb collision with direction Code Example
godot c# export variables Code Example godot c# export variables Code Example
taking input in single line c# Code Example taking input in single line c# Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10