Table of Contents

Class FVRInteractiveObject

Namespace
FistVR
Assembly
Assembly-CSharp.dll
public class FVRInteractiveObject : MonoBehaviour
Inheritance
FVRInteractiveObject
Derived

Constructors

FVRInteractiveObject()

public FVRInteractiveObject()

Fields

All

public static List<FVRInteractiveObject> All

Field Value

List<FVRInteractiveObject>

ControlType

public FVRInteractionControlType ControlType

Field Value

FVRInteractionControlType

EndInteractionDistance

public float EndInteractionDistance

Field Value

float

EndInteractionIfDistant

public bool EndInteractionIfDistant

Field Value

bool

GameObject

public GameObject GameObject

Field Value

GameObject

HandlingGrabSound

public HandlingGrabType HandlingGrabSound

Field Value

HandlingGrabType

HandlingReleaseSound

public HandlingReleaseType HandlingReleaseSound

Field Value

HandlingReleaseType

IsSimpleInteract

public bool IsSimpleInteract

Field Value

bool

PoseOverride

public Transform PoseOverride

Field Value

Transform

PoseOverride_Touch

public Transform PoseOverride_Touch

Field Value

Transform

PositionInterpSpeed

public float PositionInterpSpeed

Field Value

float

QBPoseOverride

public Transform QBPoseOverride

Field Value

Transform

RotationInterpSpeed

public float RotationInterpSpeed

Field Value

float

SecondStepFilteredRotation

protected Quaternion SecondStepFilteredRotation

Field Value

Quaternion

Transform

public Transform Transform

Field Value

Transform

UXGeo_Held

public GameObject UXGeo_Held

Field Value

GameObject

UXGeo_Hover

public GameObject UXGeo_Hover

Field Value

GameObject

UseFilteredHandPosition

public bool UseFilteredHandPosition

Field Value

bool

UseFilteredHandRotation

public bool UseFilteredHandRotation

Field Value

bool

UseFilteredHandTransform

public bool UseFilteredHandTransform

Field Value

bool

UseGrabPointChild

public bool UseGrabPointChild

Field Value

bool

UseGripRotInterp

public bool UseGripRotInterp

Field Value

bool

UseSecondStepRotationFiltering

public bool UseSecondStepRotationFiltering

Field Value

bool

m_colliders

protected Collider[] m_colliders

Field Value

Collider[]

m_grabPointTransform

protected Transform m_grabPointTransform

Field Value

Transform

m_hand

public FVRViveHand m_hand

Field Value

FVRViveHand

m_hasTriggeredUpSinceBegin

public bool m_hasTriggeredUpSinceBegin

Field Value

bool

m_pos_interp_tick

protected float m_pos_interp_tick

Field Value

float

m_rot_interp_tick

protected float m_rot_interp_tick

Field Value

float

triggerCooldown

protected float triggerCooldown

Field Value

float

Properties

GrabPointTransform

public Transform GrabPointTransform { get; set; }

Property Value

Transform

IsHeld

public bool IsHeld { get; set; }

Property Value

bool

IsHovered

public bool IsHovered { get; set; }

Property Value

bool

m_handPos

public Vector3 m_handPos { get; }

Property Value

Vector3

m_handRot

public Quaternion m_handRot { get; }

Property Value

Quaternion

m_palmPos

public Vector3 m_palmPos { get; }

Property Value

Vector3

m_palmRot

public Quaternion m_palmRot { get; }

Property Value

Quaternion

Methods

Awake()

protected virtual void Awake()

BeginInteraction(FVRViveHand)

public virtual void BeginInteraction(FVRViveHand hand)

Parameters

hand FVRViveHand

DoesFunctionAsGrabPoint()

public virtual bool DoesFunctionAsGrabPoint()

Returns

bool

EndInteraction(FVRViveHand)

public virtual void EndInteraction(FVRViveHand hand)

Parameters

hand FVRViveHand

FVRFixedUpdate()

protected virtual void FVRFixedUpdate()

FVRUpdate()

protected virtual void FVRUpdate()

ForceBreakInteraction()

public virtual void ForceBreakInteraction()

GetClosestValidPoint(Vector3, Vector3, Vector3)

public Vector3 GetClosestValidPoint(Vector3 vA, Vector3 vB, Vector3 vPoint)

Parameters

vA Vector3
vB Vector3
vPoint Vector3

Returns

Vector3

GetGrabMoveDelta()

public virtual Vector3 GetGrabMoveDelta()

Returns

Vector3

GetLastGrabHandPos()

public virtual Vector3 GetLastGrabHandPos()

Returns

Vector3

GlobalFixedUpdate()

public static void GlobalFixedUpdate()

GlobalUpdate()

public static void GlobalUpdate()

IsDistantGrabbable()

public virtual bool IsDistantGrabbable()

Returns

bool

IsInteractable()

public virtual bool IsInteractable()

Returns

bool

IsSelectionRestricted()

public virtual bool IsSelectionRestricted()

Returns

bool

OnDestroy()

public virtual void OnDestroy()

OnHoverEnd()

protected virtual void OnHoverEnd()

OnHoverStart()

protected virtual void OnHoverStart()

OnHoverStay()

protected virtual void OnHoverStay()

PlayGrabSound(bool, FVRViveHand)

public virtual void PlayGrabSound(bool isHard, FVRViveHand hand)

Parameters

isHard bool
hand FVRViveHand

PlayReleaseSound(FVRViveHand)

public virtual void PlayReleaseSound(FVRViveHand hand)

Parameters

hand FVRViveHand

Poke(FVRViveHand)

public virtual void Poke(FVRViveHand hand)

Parameters

hand FVRViveHand

SetAllCollidersToLayer(bool, string)

public void SetAllCollidersToLayer(bool triggersToo, string layerName)

Parameters

triggersToo bool
layerName string

SetCollidersToLayer(List<Collider>, bool, string)

public void SetCollidersToLayer(List<Collider> cols, bool triggersToo, string layerName)

Parameters

cols List<Collider>
triggersToo bool
layerName string

SetLastGrabHandPos(Vector3)

public virtual void SetLastGrabHandPos(Vector3 v)

Parameters

v Vector3

SetUXHeldGeoViz(bool)

protected virtual void SetUXHeldGeoViz(bool b)

Parameters

b bool

SetUXHoverGeoViz(bool)

protected virtual void SetUXHoverGeoViz(bool b)

Parameters

b bool

SimpleInteraction(FVRViveHand)

public virtual void SimpleInteraction(FVRViveHand hand)

Parameters

hand FVRViveHand

Start()

protected virtual void Start()

TestHandDistance()

public virtual void TestHandDistance()

UpdateGrabPointTransform()

public void UpdateGrabPointTransform()

UpdateInteraction(FVRViveHand)

public virtual void UpdateInteraction(FVRViveHand hand)

Parameters

hand FVRViveHand