Table of Contents

Class FVRPhysicalObject

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

Constructors

FVRPhysicalObject()

public FVRPhysicalObject()

Fields

AttachedPositionFudge

protected float AttachedPositionFudge

Field Value

float

AttachedPositionMultiplier

protected float AttachedPositionMultiplier

Field Value

float

AttachedRotationFudge

protected float AttachedRotationFudge

Field Value

float

AttachedRotationMultiplier

protected float AttachedRotationMultiplier

Field Value

float

AttachmentMounts

public List<FVRFireArmAttachmentMount> AttachmentMounts

Field Value

List<FVRFireArmAttachmentMount>

CollisionSound

public FVRPhysicalObject.FVRPhysicalSoundParams CollisionSound

Field Value

FVRPhysicalObject.FVRPhysicalSoundParams

DependantRBs

public Rigidbody[] DependantRBs

Field Value

Rigidbody[]

DistantGrabbable

public bool DistantGrabbable

Field Value

bool

DoesQuickbeltSlotFollowHead

public bool DoesQuickbeltSlotFollowHead

Field Value

bool

DoesReleaseAddVelocity

public bool DoesReleaseAddVelocity

Field Value

bool

DoesReleaseOverrideVelocity

public bool DoesReleaseOverrideVelocity

Field Value

bool

HandlingReleaseIntoSlotSound

public HandlingReleaseIntoSlotType HandlingReleaseIntoSlotSound

Field Value

HandlingReleaseIntoSlotType

Harnessable

public bool Harnessable

Field Value

bool

IsAltHeld

public bool IsAltHeld

Field Value

bool

IsAltToAltTransfer

public bool IsAltToAltTransfer

Field Value

bool

IsDebug

public bool IsDebug

Field Value

bool

IsInWater

public bool IsInWater

Field Value

bool

IsKinematicLocked

public bool IsKinematicLocked

Field Value

bool

IsPickUpLocked

public bool IsPickUpLocked

Field Value

bool

MP

public FVRPhysicalObject.MeleeParams MP

Field Value

FVRPhysicalObject.MeleeParams

MoveIntensity

public float MoveIntensity

Field Value

float

ObjectWrapper

public FVRObject ObjectWrapper

Field Value

FVRObject

OverridesObjectToHand

public FVRPhysicalObject.ObjectToHandOverrideMode OverridesObjectToHand

Field Value

FVRPhysicalObject.ObjectToHandOverrideMode

QBSlotType

public FVRQuickBeltSlot.QuickbeltSlotType QBSlotType

Field Value

FVRQuickBeltSlot.QuickbeltSlotType

RotIntensity

public float RotIntensity

Field Value

float

Size

public FVRPhysicalObject.FVRPhysicalObjectSize Size

Field Value

FVRPhysicalObject.FVRPhysicalObjectSize

Slots

public FVRQuickBeltSlot[] Slots

Field Value

FVRQuickBeltSlot[]

SpawnLockable

public bool SpawnLockable

Field Value

bool

StoredRBParams

protected FVRPhysicalObject.RigidbodyStoredParams StoredRBParams

Field Value

FVRPhysicalObject.RigidbodyStoredParams

ThrowAngMultiplier

public float ThrowAngMultiplier

Field Value

float

ThrowVelMultiplier

public float ThrowVelMultiplier

Field Value

float

UsesGravity

public bool UsesGravity

Field Value

bool

audioImpactController

protected AudioImpactController audioImpactController

Field Value

AudioImpactController

m_containedObjects

protected List<FVRPhysicalObject> m_containedObjects

Field Value

List<FVRPhysicalObject>

m_isHardnessed

public bool m_isHardnessed

Field Value

bool

m_isSpawnLock

public bool m_isSpawnLock

Field Value

bool

m_timeHeld

protected float m_timeHeld

Field Value

float

Properties

AltGrip

public FVRAlternateGrip AltGrip { get; set; }

Property Value

FVRAlternateGrip

Attachments

public List<FVRFireArmAttachment> Attachments { get; }

Property Value

List<FVRFireArmAttachment>

AudioImpactController

public AudioImpactController AudioImpactController { get; }

Property Value

AudioImpactController

Bipod

public FVRFireArmBipod Bipod { get; set; }

Property Value

FVRFireArmBipod

DoesDirectParent

public bool DoesDirectParent { get; }

Property Value

bool

HasImpactController

public bool HasImpactController { get; }

Property Value

bool

IDSpawnedFrom

public ItemSpawnerID IDSpawnedFrom { get; set; }

Property Value

ItemSpawnerID

IsPivotLocked

public bool IsPivotLocked { get; set; }

Property Value

bool

PivotLockPos

public Vector3 PivotLockPos { get; set; }

Property Value

Vector3

PivotLockRot

public Quaternion PivotLockRot { get; set; }

Property Value

Quaternion

QuickbeltSlot

public FVRQuickBeltSlot QuickbeltSlot { get; }

Property Value

FVRQuickBeltSlot

RootRigidbody

public Rigidbody RootRigidbody { get; set; }

Property Value

Rigidbody

TimeSinceInQuickbelt

public float TimeSinceInQuickbelt { get; }

Property Value

float

Methods

Awake()

protected override void Awake()

BeginInteraction(FVRViveHand)

public override void BeginInteraction(FVRViveHand hand)

Parameters

hand FVRViveHand

BeginInteractionThroughAltGrip(FVRViveHand, FVRAlternateGrip)

public virtual void BeginInteractionThroughAltGrip(FVRViveHand hand, FVRAlternateGrip grip)

Parameters

hand FVRViveHand
grip FVRAlternateGrip

BipodActivated()

public virtual void BipodActivated()

BipodDeactivated()

public virtual void BipodDeactivated()

CanVisibilityToggle()

public virtual bool CanVisibilityToggle()

Returns

bool

ClearAndDestroyContainedObjects()

public virtual void ClearAndDestroyContainedObjects()

ClearQuickbeltState()

public virtual void ClearQuickbeltState()

ConfigureFromFlagDic(Dictionary<string, string>)

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

Parameters

f Dictionary<string, string>

ContainOtherObject(FVRPhysicalObject)

public virtual void ContainOtherObject(FVRPhysicalObject o)

Parameters

o FVRPhysicalObject

DeRegisterAttachment(FVRFireArmAttachment)

public void DeRegisterAttachment(FVRFireArmAttachment attachment)

Parameters

attachment FVRFireArmAttachment

DeRegisterQuickbeltSlots()

public void DeRegisterQuickbeltSlots()

DecontainOtherObject(FVRPhysicalObject)

public virtual void DecontainOtherObject(FVRPhysicalObject o)

Parameters

o FVRPhysicalObject

DelayedRegister()

public IEnumerator DelayedRegister()

Returns

IEnumerator

DoesFlipUpVector()

public virtual bool DoesFlipUpVector()

Returns

bool

DuplicateFromSpawnLock(FVRViveHand)

public virtual GameObject DuplicateFromSpawnLock(FVRViveHand hand)

Parameters

hand FVRViveHand

Returns

GameObject

EndInteraction(FVRViveHand)

public override void EndInteraction(FVRViveHand hand)

Parameters

hand FVRViveHand

EndInteractionIntoInventorySlot(FVRViveHand, FVRQuickBeltSlot)

public virtual void EndInteractionIntoInventorySlot(FVRViveHand hand, FVRQuickBeltSlot slot)

Parameters

hand FVRViveHand
slot FVRQuickBeltSlot

FVRFixedUpdate()

protected override void FVRFixedUpdate()

FVRUpdate()

protected override void FVRUpdate()

ForceBreakInteraction()

public override void ForceBreakInteraction()

ForceObjectIntoInventorySlot(FVRQuickBeltSlot)

public virtual void ForceObjectIntoInventorySlot(FVRQuickBeltSlot slot)

Parameters

slot FVRQuickBeltSlot

GetContainedObjects()

public List<FVRPhysicalObject> GetContainedObjects()

Returns

List<FVRPhysicalObject>

GetContainedObjectsRecursively()

public List<FVRPhysicalObject> GetContainedObjectsRecursively()

Returns

List<FVRPhysicalObject>

GetFlagDic()

public virtual Dictionary<string, string> GetFlagDic()

Returns

Dictionary<string, string>

GetGenericInts()

public virtual List<int> GetGenericInts()

Returns

List<int>

GetGenericRotations()

public virtual List<Quaternion> GetGenericRotations()

Returns

List<Quaternion>

GetGenericStrings()

public virtual List<string> GetGenericStrings()

Returns

List<string>

GetGenericVector3s()

public virtual List<Vector3> GetGenericVector3s()

Returns

List<Vector3>

GetGrabPos()

protected virtual Vector3 GetGrabPos()

Returns

Vector3

GetGrabRot()

protected virtual Quaternion GetGrabRot()

Returns

Quaternion

GetHandPosWorld()

public Vector3 GetHandPosWorld()

Returns

Vector3

GetHandVelWorld()

public Vector3 GetHandVelWorld()

Returns

Vector3

GetIsSaveLoadable()

public virtual bool GetIsSaveLoadable()

Returns

bool

GetMinStabilizationAllowanceFactor()

public virtual float GetMinStabilizationAllowanceFactor()

Returns

float

GetPosTarget()

protected virtual Vector3 GetPosTarget()

Returns

Vector3

GetRecoilZ()

public virtual float GetRecoilZ()

Returns

float

GetRotTarget()

protected virtual Quaternion GetRotTarget()

Returns

Quaternion

GetStockPos()

public virtual Transform GetStockPos()

Returns

Transform

GetTimeHeld()

public float GetTimeHeld()

Returns

float

GetTutorialState()

public virtual int GetTutorialState()

Returns

int

GettimeSinceFakeVelWorldTransfered()

public float GettimeSinceFakeVelWorldTransfered()

Returns

float

HasStockPos()

public virtual bool HasStockPos()

Returns

bool

InitAfterLoad()

public virtual void InitAfterLoad()

IsDeepBelted()

public virtual bool IsDeepBelted()

Returns

bool

IsDistantGrabbable()

public override bool IsDistantGrabbable()

Returns

bool

IsInSaveableQBSlot()

public virtual bool IsInSaveableQBSlot()

Returns

bool

IsInteractable()

public override bool IsInteractable()

Returns

bool

IsSelectionRestricted()

public override bool IsSelectionRestricted()

Returns

bool

OnCollisionEnter(Collision)

public virtual void OnCollisionEnter(Collision col)

Parameters

col Collision

OnDestroy()

public override void OnDestroy()

RecoverDrag()

public void RecoverDrag()

RecoverRigidbody()

public void RecoverRigidbody()

RegisterAttachment(FVRFireArmAttachment)

public void RegisterAttachment(FVRFireArmAttachment attachment)

Parameters

attachment FVRFireArmAttachment

RegisterQuickbeltSlots()

public void RegisterQuickbeltSlots()

SetAnimatedComponent(Transform, float, InterpStyle, Axis)

public void SetAnimatedComponent(Transform t, float val, FVRPhysicalObject.InterpStyle interp, FVRPhysicalObject.Axis axis)

Parameters

t Transform
val float
interp FVRPhysicalObject.InterpStyle
axis FVRPhysicalObject.Axis

SetAnimatedComponent(Transform, Vector3, InterpStyle)

public void SetAnimatedComponent(Transform t, Vector3 val, FVRPhysicalObject.InterpStyle interp)

Parameters

t Transform
val Vector3
interp FVRPhysicalObject.InterpStyle

SetFakeHand(Vector3, Vector3)

public void SetFakeHand(Vector3 v, Vector3 p)

Parameters

v Vector3
p Vector3

SetGenericInts(List<int>)

public virtual void SetGenericInts(List<int> ints)

Parameters

ints List<int>

SetGenericRotations(List<Quaternion>)

public virtual void SetGenericRotations(List<Quaternion> rotations)

Parameters

rotations List<Quaternion>

SetGenericStrings(List<string>)

public virtual void SetGenericStrings(List<string> strings)

Parameters

strings List<string>

SetGenericVector3s(List<Vector3>)

public virtual void SetGenericVector3s(List<Vector3> vector3s)

Parameters

vector3s List<Vector3>

SetIFF(int)

public void SetIFF(int iff)

Parameters

iff int

SetIsKinematicLocked(bool)

public virtual void SetIsKinematicLocked(bool b)

Parameters

b bool

SetIsSaveLoadable(bool)

public virtual void SetIsSaveLoadable(bool b)

Parameters

b bool

SetParentage(Transform)

public void SetParentage(Transform t)

Parameters

t Transform

SetQuickBeltSlot(FVRQuickBeltSlot)

public virtual void SetQuickBeltSlot(FVRQuickBeltSlot slot)

Parameters

slot FVRQuickBeltSlot

SetVisibility(bool)

public virtual void SetVisibility(bool vis)

Parameters

vis bool

StoreAndDestroyRigidbody()

public void StoreAndDestroyRigidbody()

TestCollidersNegative()

public void TestCollidersNegative()

TestHandDistance()

public override void TestHandDistance()

ToggleKinematicLocked()

public void ToggleKinematicLocked()

ToggleQuickbeltState()

public virtual void ToggleQuickbeltState()

UpdateInteraction(FVRViveHand)

public override void UpdateInteraction(FVRViveHand hand)

Parameters

hand FVRViveHand