VR Interaction Framework  1.0
A vr framework for the Oculus Quest
BNG.DamageCollider Class Reference

This collider will Damage a Damageable object on impact More...

Inheritance diagram for BNG.DamageCollider:

Public Attributes

float Damage = 25f
 How much damage to apply to the Damageable object More...
 
float MinForce = 0.1f
 Minimum Amount of force necessary to do damage. More...
 
float LastRelativeVelocity = 0
 Our previous frame's last relative velocity value More...
 
float LastDamageForce = 0
 

Detailed Description

This collider will Damage a Damageable object on impact

Member Data Documentation

◆ Damage

float BNG.DamageCollider.Damage = 25f

How much damage to apply to the Damageable object

◆ LastDamageForce

float BNG.DamageCollider.LastDamageForce = 0

◆ LastRelativeVelocity

float BNG.DamageCollider.LastRelativeVelocity = 0

Our previous frame's last relative velocity value

◆ MinForce

float BNG.DamageCollider.MinForce = 0.1f

Minimum Amount of force necessary to do damage.

Expressed as relativeVelocity.magnitude


The documentation for this class was generated from the following file: