Documentation for the Unity C# Library
Loading...
Searching...
No Matches
CollisionReporter.cs
Go to the documentation of this file.
1using PixoVR.Core;
2using System.Collections;
3using System.Collections.Generic;
4using UnityEngine;
5
6
7
8
9public class CollisionReporter : MonoBehaviour
10{
11 private void OnCollisionEnter(Collision collision)
12 {
14 {
15 reporter = GetComponent<Collider>(),
16 collision = collision,
17 });
18 }
19}
20
21public class CollisionMessage
22{
23 public Collider reporter;
24 public Collision collision;
25}
void OnCollisionEnter(Collision collision)
Intentionally made partial, in case you want to extend it easily.