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 SourceCanBeImpaled
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 |
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 |
Damper
Declaration
[Tooltip("Base Damper Scaled By InnerDamperCurve")]
public float Damper
Field Value
Type | Description |
---|---|
System.Single |
FullStabDepth
Declaration
[Tooltip("Distance Required to execute the FullStabbed event")]
public float FullStabDepth
Field Value
Type | Description |
---|---|
System.Single |
FullStabResetDepth
Declaration
[Tooltip("Distance required to reset full stab if allowed")]
public float FullStabResetDepth
Field Value
Type | Description |
---|---|
System.Single |
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 |
LimitStabDepth
Declaration
[Header("Limits")]
public bool LimitStabDepth
Field Value
Type | Description |
---|---|
System.Boolean |
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 |
LockVelocity
Declaration
[Tooltip("Stabber locks into place if it's velocity drops below this threshold")]
public float LockVelocity
Field Value
Type | Description |
---|---|
System.Single |
ManyFullStabs
Declaration
[Header("Full Stab Settings")]
[Tooltip("Can FullStabbed event be executed many times")]
public bool ManyFullStabs
Field Value
Type | Description |
---|---|
System.Boolean |
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 |
OuterShellThickness
Declaration
[Tooltip("How thick is the outer shell (like a skull or box)")]
public float OuterShellThickness
Field Value
Type | Description |
---|---|
System.Single |
OverrideStabberProjection
Declaration
[Header("Joint")]
public bool OverrideStabberProjection
Field Value
Type | Description |
---|---|
System.Boolean |
ProjectionAngle
Declaration
public float ProjectionAngle
Field Value
Type | Description |
---|---|
System.Single |
ProjectionDistance
Declaration
public float ProjectionDistance
Field Value
Type | Description |
---|---|
System.Single |
ProjectionMode
Declaration
public JointProjectionMode ProjectionMode
Field Value
Type | Description |
---|---|
UnityEngine.JointProjectionMode |
RequiredVelocity
Declaration
[Tooltip("Required velocity to initiate the stab")]
public float RequiredVelocity
Field Value
Type | Description |
---|---|
System.Single |
StabDepthLimit
Declaration
[DrawIf("LimitStabDepth", true, DrawIfAttribute.DisablingType.DontDraw)]
public float StabDepthLimit
Field Value
Type | Description |
---|---|
System.Single |
UnlockForce
Declaration
[Tooltip("Force required to unlock the stabber once it is locked.")]
public float UnlockForce
Field Value
Type | Description |
---|---|
System.Single |
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 SourceLockVelocitySquared
Declaration
public float LockVelocitySquared { get; }
Property Value
Type | Description |
---|---|
System.Single |
UnlockForceSquared
Declaration
public float UnlockForceSquared { get; }
Property Value
Type | Description |
---|---|
System.Single |
Methods
| Improve this Doc View SourceCheckCurve()
Declaration
public void CheckCurve()