Click or drag to resize

AddForceOnDisengagedReaction Class

Adds a force to the TransformSync's RigidBody when disengaged and not in the snapped state
Inheritance Hierarchy
SystemObject
  UnityEngine.Object
    UnityEngine.Component
      UnityEngine.Behaviour
        UnityEngine.MonoBehaviour
          ImmerseSDKLoggingBehaviour
            ImmerseSDK.Interaction.ReactionsReaction
              ImmerseSDK.Interaction.ReactionsEngageableObjectReaction
                ImmerseSDK.Interaction.ReactionsLocalEngageableObjectReaction
                  ImmerseSDK.Interaction.ReactionsAddForceOnDisengagedReaction

Namespace:  ImmerseSDK.Interaction.Reactions
Assembly:  ImmerseSDK.App (in ImmerseSDK.App.dll) Version: 3.9.0.0 (3.9.0.0)
Syntax
C#
[UnityEngine.DisallowMultipleComponent]
public class AddForceOnDisengagedReaction : LocalEngageableObjectReaction

The AddForceOnDisengagedReaction type exposes the following members.

Constructors
  NameDescription
Public methodAddForceOnDisengagedReaction
Initializes a new instance of the AddForceOnDisengagedReaction class
Top
Methods
  NameDescription
Public methodStatic memberApplyDefaultForce
Applies a default force to a disengaged object
Public methodStatic memberApplyForce
Applies a specified force to a disengaged object
Public methodOnEngage
Applies a force to an object using the values set in the inspector when the object has been disengaged
(Overrides LocalEngageableObjectReactionOnEngage(Boolean, Controller).)
Protected methodReact
This method is called when the reaction occurs. Note this might be called on a Coroutine if you specified a delay.
(Overrides ReactionReact.)
Top
Fields
  NameDescription
Private field_additionalVelocityMultiplier
How much of the actual velocity is added as additional velocity
Private field_angleToApplyVelocity
Angle to use for projecting forward and up
Private field_flickForwardAngledMagnitude
How much of the actual velocity is added as additional velocity
Private field_flickForwardMagnitude
How much of the actual velocity is added as additional velocity
Private field_flickUpMagnitude
How much of the actual velocity magnitude is added as a flick velocity
Private field_numberOfFramesForAverageVelocity
The number of frames (up to max 30) to use for calculating the average velocity
Private field_useAverageVelocity
use average velocity as the force amount?
Private field_velocityMultiplier
The actual velocity is scaled by this much before being added
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