soundvision/UnityProject/Assets/AzureKinectExamples/KinectDemos/BlobDetectionDemo/Scripts/CollisionLogger.cs
max 53c1b2d7b5 Azure Kinect Demos
Bought the asset to test with
2019-10-26 11:04:12 +02:00

18 lines
436 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace com.rfilkov.components
{
public class CollisionLogger : MonoBehaviour
{
private void OnTriggerEnter(Collider other)
{
if (other.GetComponent<CollisionLogger>())
return;
Debug.Log("Detected collision of " + gameObject.name + " with " + other.gameObject.name);
}
}
}