C# Class GrabAndPlaceObject, OCDEscape

This is like Grabbable object but with no physics.
Inheritance: InteractableObject
Show file Open project: gadauto3/OCDEscape

Public Properties

Property Type Description
customLoopFreq float
customLoopStartAudio bool
grabSpeed float
grabbedInteractTag string
onObjectPlacedAction UnityAction
verticalAnchorOffset float
verticalInitOffset float
verticalPlacedOffset float

Protected Properties

Property Type Description
beforeMovePosition Vector3
doCustomLoopAudio bool
gazeAnchor Transform
grabbed bool
initParent Transform
initPosition Vector3
initRotation Quaternion
movingToAnchor bool
movingToPlacedPosition bool
placed bool
placement GrabbedInteractablePlacement,
pointer GazePointer,

Public Methods

Method Description
OffInteract ( GazePointer, pointer, Transform objectToInteractWith ) : bool
OnGrabbedHighlight ( Transform highlightedObject ) : bool
OnInteract ( GazePointer, pointer ) : bool
StartInteraction ( ) : void

Protected Methods

Method Description
Awake ( ) : void
CustomLoopAudio ( ) : IEnumerator
GetMoveToAnchorOffsetPosition ( ) : Vector3
GetMoveToAnchorPosition ( ) : Vector3
GetMoveToNotGrabbedOffsetPosition ( ) : Vector3
GetMoveToNotGrabbedPosition ( ) : Vector3
GetMoveToNotGrabbedRotation ( ) : Quaternion
MoveToAnchorPosition ( ) : IEnumerator
MoveToNotGrabbedPosition ( ) : IEnumerator

Method Details

Awake() protected method

protected Awake ( ) : void
return void

CustomLoopAudio() protected method

protected CustomLoopAudio ( ) : IEnumerator
return IEnumerator

GetMoveToAnchorOffsetPosition() protected method

protected GetMoveToAnchorOffsetPosition ( ) : Vector3
return Vector3

GetMoveToAnchorPosition() protected method

protected GetMoveToAnchorPosition ( ) : Vector3
return Vector3

GetMoveToNotGrabbedOffsetPosition() protected method

protected GetMoveToNotGrabbedOffsetPosition ( ) : Vector3
return Vector3

GetMoveToNotGrabbedPosition() protected method

protected GetMoveToNotGrabbedPosition ( ) : Vector3
return Vector3

GetMoveToNotGrabbedRotation() protected method

protected GetMoveToNotGrabbedRotation ( ) : Quaternion
return Quaternion

MoveToAnchorPosition() protected method

protected MoveToAnchorPosition ( ) : IEnumerator
return IEnumerator

MoveToNotGrabbedPosition() protected method

protected MoveToNotGrabbedPosition ( ) : IEnumerator
return IEnumerator

OffInteract() public method

public OffInteract ( GazePointer, pointer, Transform objectToInteractWith ) : bool
pointer GazePointer,
objectToInteractWith Transform
return bool

OnGrabbedHighlight() public method

public OnGrabbedHighlight ( Transform highlightedObject ) : bool
highlightedObject Transform
return bool

OnInteract() public method

public OnInteract ( GazePointer, pointer ) : bool
pointer GazePointer,
return bool

StartInteraction() public method

public StartInteraction ( ) : void
return void

Property Details

beforeMovePosition protected property

protected Vector3 beforeMovePosition
return Vector3

customLoopFreq public property

public float customLoopFreq
return float

customLoopStartAudio public property

public bool customLoopStartAudio
return bool

doCustomLoopAudio protected property

protected bool doCustomLoopAudio
return bool

gazeAnchor protected property

protected Transform gazeAnchor
return Transform

grabSpeed public property

public float grabSpeed
return float

grabbed protected property

protected bool grabbed
return bool

grabbedInteractTag public property

public string grabbedInteractTag
return string

initParent protected property

protected Transform initParent
return Transform

initPosition protected property

protected Vector3 initPosition
return Vector3

initRotation protected property

protected Quaternion initRotation
return Quaternion

movingToAnchor protected property

protected bool movingToAnchor
return bool

movingToPlacedPosition protected property

protected bool movingToPlacedPosition
return bool

onObjectPlacedAction public property

public UnityAction onObjectPlacedAction
return UnityAction

placed protected property

protected bool placed
return bool

placement protected property

protected GrabbedInteractablePlacement, placement
return GrabbedInteractablePlacement,

pointer protected property

protected GazePointer, pointer
return GazePointer,

verticalAnchorOffset public property

public float verticalAnchorOffset
return float

verticalInitOffset public property

public float verticalInitOffset
return float

verticalPlacedOffset public property

public float verticalPlacedOffset
return float