Highroad Engine v1.3
Public Member Functions | Public Attributes | List of all members
MoreMountains.HighroadEngine.SolidObstacleParticlesEmitter Class Reference

This class handles particle emission when colliding with something More...

Inheritance diagram for MoreMountains.HighroadEngine.SolidObstacleParticlesEmitter:
MoreMountains.HighroadEngine.SolidBehaviourExtender

Public Member Functions

override void Initialization ()
 On Init we stop the particle emission More...
 
override void Update ()
 Update this method in subclasses More...
 
override void OnVehicleCollisionEnter (Collision other)
 When colliding with another object, if the speed is high enough, we play our sparkles More...
 
- Public Member Functions inherited from MoreMountains.HighroadEngine.SolidBehaviourExtender
virtual void Start ()
 Controller's initialization More...
 

Public Attributes

ParticleSystem Sparkles
 A reference to the particle emission prefab. More...
 
int MinimalSpeedForSparkles = 5
 The minimal speed required to start emitting particles. More...
 

Additional Inherited Members

- Protected Attributes inherited from MoreMountains.HighroadEngine.SolidBehaviourExtender
SolidController _controller
 

Detailed Description

This class handles particle emission when colliding with something

Member Function Documentation

◆ Initialization()

override void MoreMountains.HighroadEngine.SolidObstacleParticlesEmitter.Initialization ( )
virtual

On Init we stop the particle emission

Reimplemented from MoreMountains.HighroadEngine.SolidBehaviourExtender.

◆ OnVehicleCollisionEnter()

override void MoreMountains.HighroadEngine.SolidObstacleParticlesEmitter.OnVehicleCollisionEnter ( Collision  other)
virtual

When colliding with another object, if the speed is high enough, we play our sparkles

Parameters
otherOther.

Reimplemented from MoreMountains.HighroadEngine.SolidBehaviourExtender.

◆ Update()

override void MoreMountains.HighroadEngine.SolidObstacleParticlesEmitter.Update ( )
virtual

Update this method in subclasses

Implements MoreMountains.HighroadEngine.SolidBehaviourExtender.

Member Data Documentation

◆ MinimalSpeedForSparkles

int MoreMountains.HighroadEngine.SolidObstacleParticlesEmitter.MinimalSpeedForSparkles = 5

The minimal speed required to start emitting particles.

◆ Sparkles

ParticleSystem MoreMountains.HighroadEngine.SolidObstacleParticlesEmitter.Sparkles

A reference to the particle emission prefab.


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