An object that can be picked up by a Grabber
More...
An object that can be picked up by a Grabber
◆ AddValidGrabber()
void BNG.Grabbable.AddValidGrabber |
( |
Grabber |
grabber | ) |
|
◆ DropItem() [1/2]
virtual void BNG.Grabbable.DropItem |
( |
| ) |
|
|
virtual |
◆ DropItem() [2/2]
virtual void BNG.Grabbable.DropItem |
( |
bool |
resetVelocity, |
|
|
bool |
resetParent |
|
) |
| |
|
virtual |
◆ GetControllerHand()
◆ GetGrabber()
Grabber BNG.Grabbable.GetGrabber |
( |
| ) |
|
◆ GrabItem()
virtual void BNG.Grabbable.GrabItem |
( |
Grabber |
grabbedBy | ) |
|
|
virtual |
◆ GrabRemoteItem()
virtual void BNG.Grabbable.GrabRemoteItem |
( |
Grabber |
grabbedBy | ) |
|
|
virtual |
◆ IsValidCollision()
virtual bool BNG.Grabbable.IsValidCollision |
( |
Collision |
collision | ) |
|
|
virtual |
◆ RemoveValidGrabber()
void BNG.Grabbable.RemoveValidGrabber |
( |
Grabber |
grabber | ) |
|
◆ ResetGrabbing()
void BNG.Grabbable.ResetGrabbing |
( |
| ) |
|
◆ BeingHeld
bool BNG.Grabbable.BeingHeld = false |
◆ CollisionSlerp
float BNG.Grabbable.CollisionSlerp = 500 |
How much Slerp Force to apply to the joint when something is in contact with the grabbable A higher Slerp value
◆ CollisionSpring
float BNG.Grabbable.CollisionSpring = 3000 |
How much Spring Force to apply to the joint when something comes in contact with the grabbable A higher Spring Force will make the Grabbable more rigid
◆ events
◆ GrabButton
Configure which button is used to initiate the grab
◆ GrabMechanic
Snap to a location or grab anywhere on the object
◆ GrabPhysics
Kinematic Physics locks the object in place on the hand / grabber.
PhysicsJoint allows collisions with the environment.
◆ GrabPositionOffset
Vector3 BNG.Grabbable.GrabPositionOffset = Vector3.zero |
If GrabMechanic is set to Snap, offset local position by this amount
◆ GrabRotationOffset
Vector3 BNG.Grabbable.GrabRotationOffset = Vector3.zero |
If GrabMechanic is set to Snap, offset local rotation by this amount
◆ GrabSpeed
float BNG.Grabbable.GrabSpeed = 7.5f |
How fast to Lerp the object to the hand
◆ grabTime
float BNG.Grabbable.grabTime |
|
protected |
◆ Grabtype
Should the Grab Button be held down, or can it be toggle on and off
◆ heldBy
The grabber that is currently holding us.
Null if not being held
◆ HideHandGraphics
bool BNG.Grabbable.HideHandGraphics = false |
Enabling this will hide the Transform specified in the Grabber's HandGraphics property
◆ input
◆ MirrorOffsetForOtherHand
bool BNG.Grabbable.MirrorOffsetForOtherHand = true |
◆ OtherGrabbableMustBeGrabbed
Grabbable BNG.Grabbable.OtherGrabbableMustBeGrabbed = null |
The Grabbable can only be grabbed if this grabbable is being held.
Example : If you only want a weapon part to be grabbable if the weapon itself is being held.
◆ ParentHandModel
bool BNG.Grabbable.ParentHandModel = false |
If true, the hand model will be attached to the grabbed object
◆ ParentToHands
bool BNG.Grabbable.ParentToHands = true |
Parent this object to the hands for better stability.
Not recommended for child grabbers
◆ RemoteGrabbable
bool BNG.Grabbable.RemoteGrabbable = false |
Can the object be picked up from far away.
Must be within RemoteGrabber Trigger
◆ RemoteGrabDistance
float BNG.Grabbable.RemoteGrabDistance = 2f |
◆ ThrowForceMultiplier
float BNG.Grabbable.ThrowForceMultiplier = 2f |
Multiply controller's velocity times this when throwing
◆ ThrowForceMultiplierAngular
float BNG.Grabbable.ThrowForceMultiplierAngular = 1.5f |
Multiply controller's angular velocity times this when throwing
◆ grabTransform
Transform BNG.Grabbable.grabTransform |
|
getprotected |
◆ IsGrabbable
bool BNG.Grabbable.IsGrabbable |
|
get |
The documentation for this class was generated from the following file:
- C:/Users/nuo/VR Interaction Framework/VR Interaction Framework/Assets/BNG Framework/Scripts/Core/Grabbable.cs