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