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
Public Functions Documentation
function CollisionInfo
Create collision info.
Parameters:
p_Collider
Collider collidingp_Finger
Finger haptic colliding with
function GetStrength
Get strength of collision.
Returns:
Strength of collision
function UpdateInfo
Update time of collision.
Parameters:
p_DeltaTime
Time since last update
function UpdateTimeout
Timeout collision if needed.
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