Aller au contenu principal
Cette page a été traduite automatiquement et peut contenir des erreurs. Voir l’original en anglais

Class BhapticsPhysicsGloveSettings

Inherits from ScriptableObject

Use this ScriptableObject to control the feel of the haptics that will occur on collision.


Properties

hapticMode

  • Type: enum BhapticsPhysicsGloveSettings.HapticMode
    • Mode1: Master, Slave mode.
    • Mode2: No Master, Slave, No relative velocity.
    • Mode3: No Master, Slave, No relative velocity, No decay over time.
    • Mode4: No Master, Slave, No relative velocity, No decay over time, No collision.
  • Default: Mode1

This mode determines how collisions are computed using which parameters.

motorIntensityMax

  • Type: int
  • Range: 0 - 100
  • Default Value: 50

Defines the maximum intensity level of the motor. This value determines the upper limit of the haptic feedback strength provided to the user during collisions.

motorIntensityMin

  • Type : int
  • Range: 0 - 100
  • Default Value: 1

Defines the minimum intensity level of the motor. This value sets the lower threshold for the haptic feedback strength during collisions.

velocityChangeMax

  • Type : float
  • Default Value: 2.0

Represents the maximum change in relative velocity(m/s) between the finger and the object before and after collision. This value is used to map the intensity of the motor.

velocityChangeMin

  • Type : float
  • Tooltip: Minimum value of relative velocity change (m/s)
  • Default Value: 0.2

Represents the minimum change in relative velocity between the finger and the object before and after collision. This value is used to map the intensity of the motor.

decayRate

  • Type : float
  • Range: 0.0 - 1.0
  • Default Value: 0.3

Defines the rate at which the motor strength decreases exponentially after a collision. The decay starts after the delay defined by decayDelay

decayDelay

  • Type : float
  • Range: 0.0 - 1.0
  • Default Value: 0.5

Specifies the delay in seconds before the motor strength begins to decrease exponentially following a collision.

masterSlaveDistanceMax

  • Type : float
  • Range: 0.0 - 100.0
  • Default Value: 20.0

Represents the maximum distance difference between the master and slave hand post-collision. This value is used to map the maximum intensity of the motor.

remarque

Inherited members from ScriptableObject can be found in Unity References.