Click or drag to resize

HingeEngageableObject Class

An engageable object that uses Unity's Hinge/Joint components
Inheritance Hierarchy

Namespace:  ImmerseSDK.Interaction
Assembly:  ImmerseSDK.App (in ImmerseSDK.App.dll) Version: 3.9.0.0 (3.9.0.0)
Syntax
C#
public abstract class HingeEngageableObject : EngageableObject

The HingeEngageableObject type exposes the following members.

Constructors
  NameDescription
Protected methodHingeEngageableObject
Initializes a new instance of the HingeEngageableObject class
Top
Properties
  NameDescription
Protected propertyJoint
The Joint associated with this hinge
Protected propertyJointAnchor
The joint anchor position in world coordinates
Protected propertySensitivity
Sensitivity of movement that is applied (acts like a dampener). Note this is applied to both angular movement and positional movement.
(Overrides EngageableObjectSensitivity.)
Top
Methods
  NameDescription
Protected methodAwake (Overrides EngageableObjectAwake.)
Protected methodGetAverageDirectionOfMovementForPositionUpdate
Default direction is from interaction point to controller
(Overrides EngageableObjectGetAverageDirectionOfMovementForPositionUpdate.)
Protected methodGetDirectionOfMovementForPositionUpdate
Default direction is from interaction point to controller
(Overrides EngageableObjectGetDirectionOfMovementForPositionUpdate(Int32).)
Protected methodIsMovementVelocityValid
Checks whether the vector passed in is valid - checks for Nan, and that it's magnitude is greater than Mathf.Epsilon
(Overrides EngageableObjectIsMovementVelocityValid(Vector3).)
Protected methodOnDrawGizmos
Unity Component Method
(Overrides EngageableObjectOnDrawGizmos.)
Protected methodRestrictPosition
Restrict position so that hinge cannot be moved
(Overrides EngageableObjectRestrictPosition(Vector3).)
Protected methodSetInteractionTargets
Sets the interaction target on the controller
(Overrides EngageableObjectSetInteractionTargets(Controller).)
Top
Fields
  NameDescription
Private field_sensitivity
Sensitivity of movement that is applied (acts like a dampener). Note this is applied to both angular movement and positional movement.
Top
Extension Methods
  NameDescription
Public Extension MethodGetCopyOf
Copies all properties of a component from source to target. Uses reflection to set properties.
(Defined by ComponentExtensions.)
Public Extension MethodWaitForT
Waits for a singleton on a coroutine
(Defined by SingletonManager.)
Top
See Also