Neodroid  0.2.0
Machine Learning Environment Prototyping Tool
ChildCollider3DSensor.cs
Go to the documentation of this file.
1 using UnityEngine;
2 
3 namespace droid.Runtime.Utilities.GameObjects.ChildSensors {
7  public class ChildCollider3DSensor : ChildColliderSensor<Collider, Collision> {
8  void OnTriggerEnter(Collider other) { this._on_trigger_enter_delegate?.Invoke(this.gameObject, other); }
9  void OnTriggerStay(Collider other) { this._on_trigger_stay_delegate?.Invoke(this.gameObject, other); }
10  void OnTriggerExit(Collider other) { this._on_trigger_exit_delegate?.Invoke(this.gameObject, other); }
11 
12  void OnCollisionEnter(Collision collision) {
13  this._on_collision_enter_delegate?.Invoke(this.gameObject, collision);
14  }
15 
16  void OnCollisionStay(Collision collision) {
17  this._on_collision_stay_delegate?.Invoke(this.gameObject, collision);
18  }
19 
20  void OnCollisionExit(Collision collision) {
21  this._on_collision_exit_delegate?.Invoke(this.gameObject, collision);
22  }
23  }
24 }