Class NearInteractionTouchable
Add a NearInteractionTouchable to your scene and configure a touchable surface
in order to get PointerDown and PointerUp events whenever a PokePointer touches this surface.
Inheritance
NearInteractionTouchable
Assembly: cs.temp.dll.dll
public class NearInteractionTouchable : ColliderNearInteractionTouchable
Fields
Local space forward direction
Declaration
Field Value
Local space object center
Declaration
protected Vector3 localCenter
Field Value
Local space forward direction
Declaration
protected Vector3 localForward
Field Value
Local space forward direction
Declaration
protected Vector3 localUp
Field Value
Properties
Returns true if the LocalForward and LocalUp vectors are orthogonal.
Declaration
public bool AreLocalVectorsOrthogonal { get; }
Property Value
Declaration
public Vector2 Bounds { get; set; }
Property Value
Declaration
public Vector3 Forward { get; }
Property Value
Declaration
public Vector3 LocalCenter { get; set; }
Property Value
Declaration
public Vector3 LocalForward { get; }
Property Value
Declaration
public Vector3 LocalRight { get; }
Property Value
Declaration
public Vector3 LocalUp { get; }
Property Value
Methods
Declaration
public override float DistanceToTouchable(Vector3 samplePoint, out Vector3 normal)
Parameters
Type |
Name |
Description |
Vector3 |
samplePoint |
|
Vector3 |
normal |
|
Returns
Overrides
Declaration
protected void OnValidate()
Declaration
public void SetLocalForward(Vector3 newLocalForward)
Parameters
Type |
Name |
Description |
Vector3 |
newLocalForward |
|
Declaration
public void SetLocalUp(Vector3 newLocalUp)
Parameters
Type |
Name |
Description |
Vector3 |
newLocalUp |
|