Example of how to make a script to grab objects. Can change between grabbing with open/closed hand or pinch.
◆ GrabType
◆ DropObject()
| void ManoMotion.SimpleGrabber.DropObject |
( |
| ) |
|
|
inlineprivate |
◆ GetCenterPoint()
| Vector3 ManoMotion.SimpleGrabber.GetCenterPoint |
( |
| ) |
|
|
inlineprivate |
◆ GrabObject()
| void ManoMotion.SimpleGrabber.GrabObject |
( |
| ) |
|
|
inlineprivate |
◆ MoveObject()
| void ManoMotion.SimpleGrabber.MoveObject |
( |
| ) |
|
|
inlineprivate |
◆ OnDrawGizmos()
| void ManoMotion.SimpleGrabber.OnDrawGizmos |
( |
| ) |
|
|
inlineprivate |
◆ Update()
| void ManoMotion.SimpleGrabber.Update |
( |
| ) |
|
|
inlineprivate |
◆ UpdateGrabType()
| void ManoMotion.SimpleGrabber.UpdateGrabType |
( |
| ) |
|
|
inlineprivate |
◆ castRadius
| float ManoMotion.SimpleGrabber.castRadius = 0.05f |
|
private |
◆ fingerJoints
| int [] ManoMotion.SimpleGrabber.fingerJoints |
|
private |
◆ grabbedObject
| Transform ManoMotion.SimpleGrabber.grabbedObject |
|
private |
◆ grabTrigger
◆ grabType
| GrabType ManoMotion.SimpleGrabber.grabType |
|
private |
◆ handIndex
| int ManoMotion.SimpleGrabber.handIndex |
|
private |
◆ handInfo
| HandInfo ManoMotion.SimpleGrabber.handInfo |
|
private |
◆ isGrabbing
| bool ManoMotion.SimpleGrabber.isGrabbing |
|
private |
◆ lastGrabType
◆ releaseTrigger