Loading...
Searching...
No Matches
AdventureCore.ImpactItem Class Reference

Detailed Description

behaviour that triggers an event when it receives trigger enter messages
which event is triggered can be keyed to an ImpactArea
used in the demos to display different sparks and sounds when weapons hit the environment

https://adventure.softleitner.com/manual/utilities

Inheritance diagram for AdventureCore.ImpactItem:

Classes

class  ImpactOption
 

Public Attributes

Transform Point
 
Vector3 Offset
 
bool SendOnce = true
 
bool RequireArea
 
bool ImpactTriggers
 
Transform Parent
 
Transform Prefab
 
UnityEvent< Vector3 > Hit
 
ImpactOption[] Options
 

Protected Member Functions

virtual void OnTriggerEnter2D (Collider2D collider)
 
virtual void OnTriggerEnter (Collider collider)
 
virtual Vector3 getPosition ()
 
virtual bool check (Component component, out ImpactArea area)
 
virtual void impact (ImpactArea area, Vector3 position)