C# Class GrabbableObject, OCDEscape

Inheritance: MonoBehaviour
Show file Open project: gadauto3/OCDEscape Class Usage Examples

Public Properties

Property Type Description
freeDrag float
grabSpeed float
grabbedDrag float
grabbedInteractTag string
springDamping float
springStrength float

Protected Properties

Property Type Description
anchor Transform
anchorBody UnityEngine.Rigidbody
beforeMovePosition Vector3
gazeAnchor Transform
grabbed bool
lastParent Transform
lastPosition Vector3
lastRotation Quaternion
moveToAnchor bool
moveToLastPosition bool
myJoint UnityEngine.ConfigurableJoint
myRigidbody UnityEngine.Rigidbody
pointer GazePointer,

Public Methods

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

Protected Methods

Method Description
Awake ( ) : void
CreateAnchor ( ) : void
CreateJoint ( ) : void
FreeJoint ( ) : void
GetMoveToAnchorOffsetPosition ( ) : Vector3
GetMoveToNotGrabbedOffsetPosition ( ) : Vector3
GetMoveToNotGrabbedPosition ( ) : Vector3
GetMoveToNotGrabbedRotation ( ) : Quaternion
LimitJoint ( ) : void
MoveToAnchorPosition ( ) : IEnumerator
MoveToNotGrabbedPosition ( ) : IEnumerator
OnObjectPutBack ( ) : void

Method Details

Awake() protected method

protected Awake ( ) : void
return void

CreateAnchor() protected method

protected CreateAnchor ( ) : void
return void

CreateJoint() protected method

protected CreateJoint ( ) : void
return void

FreeJoint() protected method

protected FreeJoint ( ) : void
return void

GetMoveToAnchorOffsetPosition() protected method

protected GetMoveToAnchorOffsetPosition ( ) : 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

LimitJoint() protected method

protected LimitJoint ( ) : void
return void

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

OnObjectPutBack() protected method

protected OnObjectPutBack ( ) : void
return void

Property Details

anchor protected property

protected Transform anchor
return Transform

anchorBody protected property

protected Rigidbody,UnityEngine anchorBody
return UnityEngine.Rigidbody

beforeMovePosition protected property

protected Vector3 beforeMovePosition
return Vector3

freeDrag public property

public float freeDrag
return float

gazeAnchor protected property

protected Transform gazeAnchor
return Transform

grabSpeed public property

public float grabSpeed
return float

grabbed protected property

protected bool grabbed
return bool

grabbedDrag public property

public float grabbedDrag
return float

grabbedInteractTag public property

public string grabbedInteractTag
return string

lastParent protected property

protected Transform lastParent
return Transform

lastPosition protected property

protected Vector3 lastPosition
return Vector3

lastRotation protected property

protected Quaternion lastRotation
return Quaternion

moveToAnchor protected property

protected bool moveToAnchor
return bool

moveToLastPosition protected property

protected bool moveToLastPosition
return bool

myJoint protected property

protected ConfigurableJoint,UnityEngine myJoint
return UnityEngine.ConfigurableJoint

myRigidbody protected property

protected Rigidbody,UnityEngine myRigidbody
return UnityEngine.Rigidbody

pointer protected property

protected GazePointer, pointer
return GazePointer,

springDamping public property

public float springDamping
return float

springStrength public property

public float springStrength
return float