Table of Contents

Class FVRShatterableObject

Namespace
FistVR
Assembly
Assembly-CSharp.dll
public class FVRShatterableObject : MonoBehaviour, IFVRDamageable
Inheritance
FVRShatterableObject
Implements
Derived

Constructors

FVRShatterableObject()

public FVRShatterableObject()

Fields

AudEvent_Destruction

public AudioEvent AudEvent_Destruction

Field Value

AudioEvent

DestructionPSystemEmits

public int[] DestructionPSystemEmits

Field Value

int[]

DestructionPSystems

public ParticleSystem[] DestructionPSystems

Field Value

ParticleSystem[]

NumShotsToShatter

public int NumShotsToShatter

Field Value

int

OnDieMessage

public string OnDieMessage

Field Value

string

OnDieTarget

public GameObject OnDieTarget

Field Value

GameObject

Shards

public Rigidbody[] Shards

Field Value

Rigidbody[]

TakesColDamage

public bool TakesColDamage

Field Value

bool

explosionMultiplier

public float explosionMultiplier

Field Value

float

m_rb

protected Rigidbody m_rb

Field Value

Rigidbody

Methods

Awake()

public virtual void Awake()

Damage(Damage)

public void Damage(Damage dam)

Parameters

dam Damage

Destroy(Vector3, Vector3)

public virtual void Destroy(Vector3 damagePoint, Vector3 damageDir)

Parameters

damagePoint Vector3
damageDir Vector3

GoNonKinematic()

protected void GoNonKinematic()

GoNonKinematic(Vector3, Vector3)

protected void GoNonKinematic(Vector3 point, Vector3 force)

Parameters

point Vector3
force Vector3

OnCollisionEnter(Collision)

public void OnCollisionEnter(Collision col)

Parameters

col Collision