forked from TouchScript/TouchScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathITouchHit2D.cs
More file actions
30 lines (27 loc) · 705 Bytes
/
Copy pathITouchHit2D.cs
File metadata and controls
30 lines (27 loc) · 705 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
* @author Valentin Simonov / http://va.lent.in/
*/
using UnityEngine;
namespace TouchScript.Hit
{
/// <summary>
/// An object representing metadata for touches hitting 2d objects with 2d colliders.
/// </summary>
public interface ITouchHit2D : ITouchHit
{
/// <summary>
/// Gets touched 2d collider.
/// </summary>
/// <value>
/// Collider2D which was hit.
/// </value>
Collider2D Collider2D { get; }
/// <summary>
/// Gets the Rigidbidy2D which was touched.
/// </summary>
/// <value>
/// Touched Rigidbody2D.
/// </value>
Rigidbody2D Rigidbody2D { get; }
}
}