Table of Contents

Class FVRFireArmAttachment

Namespace
FistVR
Assembly
Assembly-CSharp.dll
public class FVRFireArmAttachment : FVRPhysicalObject
Inheritance
FVRFireArmAttachment
Derived
Inherited Members

Constructors

FVRFireArmAttachment()

public FVRFireArmAttachment()

Fields

AttachmentInterface

public FVRFireArmAttachmentInterface AttachmentInterface

Field Value

FVRFireArmAttachmentInterface

AudClipAttach

public AudioEvent AudClipAttach

Field Value

AudioEvent

AudClipDettach

public AudioEvent AudClipDettach

Field Value

AudioEvent

CanScaleToMount

public bool CanScaleToMount

Field Value

bool

DisableOnAttached

public GameObject DisableOnAttached

Field Value

GameObject

IsBiDirectional

public bool IsBiDirectional

Field Value

bool

Sensor

public FVRFireArmAttachmentSensor Sensor

Field Value

FVRFireArmAttachmentSensor

Type

public FVRFireArmAttachementMountType Type

Field Value

FVRFireArmAttachementMountType

curMount

public FVRFireArmAttachmentMount curMount

Field Value

FVRFireArmAttachmentMount

m_isInSnappingMode

protected bool m_isInSnappingMode

Field Value

bool

Methods

AttachToMount(FVRFireArmAttachmentMount, bool)

public virtual void AttachToMount(FVRFireArmAttachmentMount m, bool playSound)

Parameters

m FVRFireArmAttachmentMount
playSound bool

Awake()

protected override void Awake()

BeginInteraction(FVRViveHand)

public override void BeginInteraction(FVRViveHand hand)

Parameters

hand FVRViveHand

CanAttach()

public virtual bool CanAttach()

Returns

bool

CanDetach()

public virtual bool CanDetach()

Returns

bool

ConfigureFromFlagDic(Dictionary<string, string>)

public override void ConfigureFromFlagDic(Dictionary<string, string> f)

Parameters

f Dictionary<string, string>

DetachFromMount()

public void DetachFromMount()

EndInteraction(FVRViveHand)

public override void EndInteraction(FVRViveHand hand)

Parameters

hand FVRViveHand

FVRFixedUpdate()

protected override void FVRFixedUpdate()

GetFlagDic()

public override Dictionary<string, string> GetFlagDic()

Returns

Dictionary<string, string>

GetGrabPos()

protected override Vector3 GetGrabPos()

Returns

Vector3

GetGrabRot()

protected override Quaternion GetGrabRot()

Returns

Quaternion

GetPosTarget()

protected override Vector3 GetPosTarget()

Returns

Vector3

GetRootObject()

public FVRPhysicalObject GetRootObject()

Returns

FVRPhysicalObject

GetRotTarget()

protected override Quaternion GetRotTarget()

Returns

Quaternion

IsInteractable()

public override bool IsInteractable()

Returns

bool

ScaleToMount(FVRFireArmAttachmentMount)

public void ScaleToMount(FVRFireArmAttachmentMount mount)

Parameters

mount FVRFireArmAttachmentMount

SetSnapping(bool)

protected virtual void SetSnapping(bool b)

Parameters

b bool

SetTriggerState(bool)

public void SetTriggerState(bool b)

Parameters

b bool

UpdateInteraction(FVRViveHand)

public override void UpdateInteraction(FVRViveHand hand)

Parameters

hand FVRViveHand

UpdateSnappingBasedOnDistance()

protected virtual void UpdateSnappingBasedOnDistance()