C# Class GrabbableObject, OCDEscape

Inheritance: MonoBehaviour
Exibir arquivo 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_oe property

protected Transform anchor
return Transform

anchorBody protected_oe property

protected Rigidbody,UnityEngine anchorBody
return UnityEngine.Rigidbody

beforeMovePosition protected_oe property

protected Vector3 beforeMovePosition
return Vector3

freeDrag public_oe property

public float freeDrag
return float

gazeAnchor protected_oe property

protected Transform gazeAnchor
return Transform

grabSpeed public_oe property

public float grabSpeed
return float

grabbed protected_oe property

protected bool grabbed
return bool

grabbedDrag public_oe property

public float grabbedDrag
return float

grabbedInteractTag public_oe property

public string grabbedInteractTag
return string

lastParent protected_oe property

protected Transform lastParent
return Transform

lastPosition protected_oe property

protected Vector3 lastPosition
return Vector3

lastRotation protected_oe property

protected Quaternion lastRotation
return Quaternion

moveToAnchor protected_oe property

protected bool moveToAnchor
return bool

moveToLastPosition protected_oe property

protected bool moveToLastPosition
return bool

myJoint protected_oe property

protected ConfigurableJoint,UnityEngine myJoint
return UnityEngine.ConfigurableJoint

myRigidbody protected_oe property

protected Rigidbody,UnityEngine myRigidbody
return UnityEngine.Rigidbody

pointer protected_oe property

protected GazePointer, pointer
return GazePointer,

springDamping public_oe property

public float springDamping
return float

springStrength public_oe property

public float springStrength
return float