![]() | EngageableObjectTracking Methods |
The EngageableObjectTracking type exposes the following members.
Name | Description | |
---|---|---|
![]() | Awake |
Unity Component Method
|
![]() | Engage |
Attempt to Engage this object. If this is successfull, then a Ghost message is broadcast and the return value is true.
|
![]() | FixedUpdate |
Unity Component Method
|
![]() | GetAngularVelocityOfController |
Calculates the average angular velocity of all the engaging controllers
|
![]() | GetDeltaWorldPositionToController |
Calculates the average delta distance moved by all the engaged controllers using world coordinates. Takes the interaction point into consideration if one was specified.
|
![]() | GetDirectionOfMovementForPositionUpdate |
Default direction is from interaction point to controller
|
![]() | GetTargetWorldPositionForController |
Returns the target position for this object based on the current engaging controller and interaction point
|
![]() | GetVectorFromInteractionPointToController |
Calculates the distance from the interaction point (using the transform's position as default) to the average position of all the engaging controllers using world coordinates
|
![]() | GetVelocityOfController |
Calculates the average velocity of all the engaging controllers using world coordinates
|
![]() | IsMovementVelocityValid |
Checks whether the vector passed in is valid - checks for Nan, and that it's magnitude is greater than Mathf.Epsilon
|
![]() | Mask |
Masks the specified vector by only allowing the axis specified
|
![]() | MoveTowardControllerPosition |
Moves the object towards the average position of all the engaged controllers using physics in VR (in WebGL we will just set the position).
Note: world coordinates are used when doing calculations.
|
![]() | MoveTowardControllerRotation |
Rotates the object towards the average rotation of all the engaged controllers using physics in VR (in WebGL we will just set the position)
|
![]() | MoveTowards |
Moves this object by applying the velocity
|
![]() | OnDrawGizmos |
Unity Component Method
|
![]() | RequirementsMet |
Returns true if interaction is allowed, and interaction requirements are met.
|
![]() | RestrictMovement |
Override this to restrict movement direction in some way. Default behavior is to return the direction unmodified.
|
![]() | RestrictPosition |
Override this to restrict an object's position in some way. Default behavior is to return the target position unmodified.
|
![]() | RotateTowardsControllerPositionPhysical |
Rotates the object towards the average rotation of all the engaged controllers using physics.
This rotation is also masked so only the world axis specified is used.
|
![]() | RotateUsingControllerAngularVelocity |
Rotates the object using the average angular velocity of all the engaged controllers using physics.
This rotation is also masked so only the local axis specified is used.
|
![]() | ShortVibrateController |
Used to trigger a small vibration for the user
|
![]() | ShowHighlight |
Shows/Hides a highlight around the object
|
![]() | ToggleDrag |
We reduce drag for smoother interaction. This method toggles it on or off
|
![]() | TriggerScreenControlInteract | |
![]() | TriggerShortControlerVibration |
Trigger a short vibration on the current engaged object
|
![]() | UpdateDisplayForEngagement |
Called when this object's engagement state changes.
Override to implement any visual feedback required.
|
Name | Description | |
---|---|---|
![]() | Disengage |
Disengage an engageable object
(Defined by EngagingExtensions.) |
![]() | Engage |
Engage an engageable object. This will be a local/remote engagement based on it's type
(EngageableObject)
(Defined by EngagingExtensions.) |
![]() | GetCopyOf |
Copies all properties of a component from source to target. Uses reflection to set properties.
(Defined by ComponentExtensions.) |
![]() | IsAvailable |
Checks whether the target is available for interaction
(Defined by EngagingExtensions.) |
![]() | WaitForT |
Waits for a singleton on a coroutine
(Defined by SingletonManager.) |