Skip to content

Class Manus::Haptics::CollisionInfo

ClassList > Manus > Haptics > CollisionInfo

Holds information about collisions.

Public Properties

Type Name
property float collisionTime

Public Functions

Type Name
CollisionInfo (Collider p_Collider, FingerHaptics p_Finger)
Create collision info.
float GetStrength ()
Get strength of collision.
void UpdateInfo (float p_DeltaTime)
Update time of collision.
bool UpdateTimeout (float p_DeltaTime)
Timeout collision if needed.

Public Properties Documentation

property collisionTime

float Manus.Haptics.CollisionInfo.collisionTime;

Public Functions Documentation

function CollisionInfo

Create collision info.

inline Manus::Haptics::CollisionInfo::CollisionInfo (
    Collider p_Collider,
    FingerHaptics p_Finger
) 

Parameters:

  • p_Collider Collider colliding
  • p_Finger Finger haptic colliding with

function GetStrength

Get strength of collision.

inline float Manus::Haptics::CollisionInfo::GetStrength () 

Returns:

Strength of collision

function UpdateInfo

Update time of collision.

inline void Manus::Haptics::CollisionInfo::UpdateInfo (
    float p_DeltaTime
) 

Parameters:

  • p_DeltaTime Time since last update

function UpdateTimeout

Timeout collision if needed.

inline bool Manus::Haptics::CollisionInfo::UpdateTimeout (
    float p_DeltaTime
) 

Parameters:

  • p_DeltaTime Time since last update

Returns:

Whether collision timed out


The documentation for this class was generated from the following file api/unity-plugin/Scripts/Haptics/FingerHaptics.cs