forked from TouchScript/TouchScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathITouchHit.cs
More file actions
30 lines (27 loc) · 755 Bytes
/
Copy pathITouchHit.cs
File metadata and controls
30 lines (27 loc) · 755 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 which represents abstract metadata which is generated by touches hitting objects in Unity.
/// </summary>
public interface ITouchHit
{
/// <summary>
/// Gets the object hit by touch.
/// </summary>
/// <value>
/// The object hit by touch.
/// </value>
Transform Transform { get; }
/// <summary>
/// Gets the coordinates where the touch hits the object.
/// </summary>
/// <value>
/// World coordinates of the point where the object was touched.
/// </value>
Vector3 Point { get; }
}
}