Show / Hide Table of Contents

Class HVRStabbableSettings

Inheritance
System.Object
UnityEngine.Object
UnityEngine.ScriptableObject
HVRStabbableSettings
Inherited Members
UnityEngine.ScriptableObject.SetDirty()
UnityEngine.ScriptableObject.CreateInstance(System.String)
UnityEngine.ScriptableObject.CreateInstance(System.Type)
UnityEngine.ScriptableObject.CreateInstance<T>()
UnityEngine.Object.GetInstanceID()
UnityEngine.Object.GetHashCode()
UnityEngine.Object.Equals(System.Object)
UnityEngine.Object.Instantiate(UnityEngine.Object, UnityEngine.Vector3, UnityEngine.Quaternion)
UnityEngine.Object.Instantiate(UnityEngine.Object, UnityEngine.Vector3, UnityEngine.Quaternion, UnityEngine.Transform)
UnityEngine.Object.Instantiate(UnityEngine.Object)
UnityEngine.Object.Instantiate(UnityEngine.Object, UnityEngine.Transform)
UnityEngine.Object.Instantiate(UnityEngine.Object, UnityEngine.Transform, System.Boolean)
UnityEngine.Object.Instantiate<T>(T)
UnityEngine.Object.Instantiate<T>(T, UnityEngine.Vector3, UnityEngine.Quaternion)
UnityEngine.Object.Instantiate<T>(T, UnityEngine.Vector3, UnityEngine.Quaternion, UnityEngine.Transform)
UnityEngine.Object.Instantiate<T>(T, UnityEngine.Transform)
UnityEngine.Object.Instantiate<T>(T, UnityEngine.Transform, System.Boolean)
UnityEngine.Object.Destroy(UnityEngine.Object, System.Single)
UnityEngine.Object.Destroy(UnityEngine.Object)
UnityEngine.Object.DestroyImmediate(UnityEngine.Object, System.Boolean)
UnityEngine.Object.DestroyImmediate(UnityEngine.Object)
UnityEngine.Object.FindObjectsOfType(System.Type)
UnityEngine.Object.DontDestroyOnLoad(UnityEngine.Object)
UnityEngine.Object.DestroyObject(UnityEngine.Object, System.Single)
UnityEngine.Object.DestroyObject(UnityEngine.Object)
UnityEngine.Object.FindSceneObjectsOfType(System.Type)
UnityEngine.Object.FindObjectsOfTypeIncludingAssets(System.Type)
UnityEngine.Object.FindObjectsOfType<T>()
UnityEngine.Object.FindObjectOfType<T>()
UnityEngine.Object.FindObjectsOfTypeAll(System.Type)
UnityEngine.Object.FindObjectOfType(System.Type)
UnityEngine.Object.ToString()
UnityEngine.Object.name
UnityEngine.Object.hideFlags
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: HurricaneVR.Framework.Core.Stabbing
Assembly: HurricaneVR.Framework.dll
Syntax
[CreateAssetMenu(menuName = "HurricaneVR/Stabbable Settings", fileName = "StabSettings")]
public class HVRStabbableSettings : ScriptableObject

Fields

| Improve this Doc View Source

CanBeImpaled

Declaration
[Header("Settings")]
[Tooltip("If true depth and unstab checks will use raycasts on the stabbable colliders")]
public bool CanBeImpaled
Field Value
Type Description
System.Boolean
| Improve this Doc View Source

CanLock

Declaration
[Header("Locking")]
[Tooltip("If true the stabber will lock into place if the velocity drops below the LockVelocity threshold, once locked a force of 'UnlockForce' must beexerted to unlock the stabber")]
public bool CanLock
Field Value
Type Description
System.Boolean
| Improve this Doc View Source

Damper

Declaration
[Tooltip("Base Damper Scaled By InnerDamperCurve")]
public float Damper
Field Value
Type Description
System.Single
| Improve this Doc View Source

FullStabDepth

Declaration
[Tooltip("Distance Required to execute the FullStabbed event")]
public float FullStabDepth
Field Value
Type Description
System.Single
| Improve this Doc View Source

FullStabResetDepth

Declaration
[Tooltip("Distance required to reset full stab if allowed")]
public float FullStabResetDepth
Field Value
Type Description
System.Single
| Improve this Doc View Source

InnerDamperCurve

Declaration
[Tooltip("Joint Damper curve that takes over once the outer shell is breached, defaults to 1 if not provided")]
public AnimationCurve InnerDamperCurve
Field Value
Type Description
UnityEngine.AnimationCurve
| Improve this Doc View Source

LimitStabDepth

Declaration
[Header("Limits")]
public bool LimitStabDepth
Field Value
Type Description
System.Boolean
| Improve this Doc View Source

LockTime

Declaration
[Tooltip("Force must be over the unlock force threshold for this amount of time to unlock the stabber")]
public float LockTime
Field Value
Type Description
System.Single
| Improve this Doc View Source

LockVelocity

Declaration
[Tooltip("Stabber locks into place if it's velocity drops below this threshold")]
public float LockVelocity
Field Value
Type Description
System.Single
| Improve this Doc View Source

ManyFullStabs

Declaration
[Header("Full Stab Settings")]
[Tooltip("Can FullStabbed event be executed many times")]
public bool ManyFullStabs
Field Value
Type Description
System.Boolean
| Improve this Doc View Source

OuterShellDamper

Declaration
[Header("Friction")]
[Tooltip("Joint Friction In effect until OuterShellDepth is breached by the stabber")]
public float OuterShellDamper
Field Value
Type Description
System.Single
| Improve this Doc View Source

OuterShellThickness

Declaration
[Tooltip("How thick is the outer shell (like a skull or box)")]
public float OuterShellThickness
Field Value
Type Description
System.Single
| Improve this Doc View Source

OverrideStabberProjection

Declaration
[Header("Joint")]
public bool OverrideStabberProjection
Field Value
Type Description
System.Boolean
| Improve this Doc View Source

ProjectionAngle

Declaration
public float ProjectionAngle
Field Value
Type Description
System.Single
| Improve this Doc View Source

ProjectionDistance

Declaration
public float ProjectionDistance
Field Value
Type Description
System.Single
| Improve this Doc View Source

ProjectionMode

Declaration
public JointProjectionMode ProjectionMode
Field Value
Type Description
UnityEngine.JointProjectionMode
| Improve this Doc View Source

RequiredVelocity

Declaration
[Tooltip("Required velocity to initiate the stab")]
public float RequiredVelocity
Field Value
Type Description
System.Single
| Improve this Doc View Source

StabDepthLimit

Declaration
[DrawIf("LimitStabDepth", true, DrawIfAttribute.DisablingType.DontDraw)]
public float StabDepthLimit
Field Value
Type Description
System.Single
| Improve this Doc View Source

UnlockForce

Declaration
[Tooltip("Force required to unlock the stabber once it is locked.")]
public float UnlockForce
Field Value
Type Description
System.Single
| Improve this Doc View Source

UseDamperCurve

Declaration
[Tooltip("If true uses the damper curve against depth / blade length, otherwise flat damper will be used")]
public bool UseDamperCurve
Field Value
Type Description
System.Boolean

Properties

| Improve this Doc View Source

LockVelocitySquared

Declaration
public float LockVelocitySquared { get; }
Property Value
Type Description
System.Single
| Improve this Doc View Source

UnlockForceSquared

Declaration
public float UnlockForceSquared { get; }
Property Value
Type Description
System.Single

Methods

| Improve this Doc View Source

CheckCurve()

Declaration
public void CheckCurve()
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX