Creates a bullet effect, which consists of a combination of a bullet hole, spark or blood splatter effect.
More...
List of all members.
Public Member Functions |
void | Start () |
| Initialises the bullet effects properties.
|
void | createBulletHole (RaycastHit _hit) |
| Creates a bullet hole object (plane with bullet texture applied to it) and positions and rotates it relative to the object (the area the bullet hit).
|
void | createBulletSparks (RaycastHit _hit) |
| Creates a bullet spark (a particle effect) positioned relative to the object the bullet has hit.
|
void | createBloodSplatter (RaycastHit _hit) |
| Creates a bullet splatter effect, which is positioned parallel to the object the ray cast hits.
|
Detailed Description
Creates a bullet effect, which consists of a combination of a bullet hole, spark or blood splatter effect.
- Author:
- Alexander Poolton
- Version:
- 3.0
- Date:
- 12/7/2011
Member Function Documentation
void BulletEffects::createBloodSplatter |
( |
RaycastHit |
_hit | ) |
[inline] |
Creates a bullet splatter effect, which is positioned parallel to the object the ray cast hits.
- Parameters:
-
[in] | _hit | The hit information gathered from where the ray cast hit (returns collider and object information from the object hit). |
void BulletEffects::createBulletHole |
( |
RaycastHit |
_hit | ) |
[inline] |
Creates a bullet hole object (plane with bullet texture applied to it) and positions and rotates it relative to the object (the area the bullet hit).
- Parameters:
-
[in] | _hit | The hit information gathered from where the ray cast hit (returns collider and object information from the object hit). |
void BulletEffects::createBulletSparks |
( |
RaycastHit |
_hit | ) |
[inline] |
Creates a bullet spark (a particle effect) positioned relative to the object the bullet has hit.
- Parameters:
-
[in] | _hit | The hit information gathered from where the ray cast hit (returns collider and object information from the object hit). |
The documentation for this class was generated from the following file:
- C:/Users/Alex/Desktop/Gamepad Classes/BulletEffects.cs