forked from TouchScript/TouchScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathITouchHit3D.cs
More file actions
38 lines (34 loc) · 1020 Bytes
/
Copy pathITouchHit3D.cs
File metadata and controls
38 lines (34 loc) · 1020 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
31
32
33
34
35
36
37
38
/*
* @author Valentin Simonov / http://va.lent.in/
*/
using UnityEngine;
namespace TouchScript.Hit
{
/// <summary>
/// An object representing metadata for touches hitting 3d objects with 3d colliders.
/// </summary>
public interface ITouchHit3D : ITouchHit
{
/// <summary>
/// Gets the collider which was hit by the touch.
/// </summary>
/// <value>
/// The collider hit by the touch.
/// </value>
Collider Collider { get; }
/// <summary>
/// Gets the normal to the surface at the point where the object was hit.
/// </summary>
/// <value>
/// The normal to the surface at the point where the object was hit.
/// </value>
Vector3 Normal { get; }
/// <summary>
/// Gets the rigidbody of the hit object.
/// </summary>
/// <value>
/// The rigidbody on the object which was hit.
/// </value>
Rigidbody Rigidbody { get; }
}
}