Handles scattering debris around.
More...
#include "debris.h"
#include "log.h"
#include "nstring.h"
#include "pilot.h"
#include "rng.h"
#include "spfx.h"
Go to the source code of this file.
Handles scattering debris around.
Definition in file debris.c.
◆ debris_add()
| void debris_add |
( |
double |
mass, |
|
|
double |
r, |
|
|
double |
px, |
|
|
double |
py, |
|
|
double |
vx, |
|
|
double |
vy |
|
) |
| |
Creates a cloud of debris.
- Parameters
-
| mass | Mass of the debris cloud. |
| r | Radius of the cloud. |
| px | X position to center cloud. |
| py | Y position to center cloud. |
| vx | X velocity of the cloud center. |
| vy | Y velocity of the cloud center. |
Definition at line 80 of file debris.c.
◆ debris_cleanup()
| void debris_cleanup |
( |
void |
| ) |
|
Cleans up after the debris.
Definition at line 28 of file debris.c.
◆ debris_load()
| static int debris_load |
( |
void |
| ) |
|
|
static |
Loads the debris spfx into an array.
- Returns
- 0 on success.
Definition at line 39 of file debris.c.
◆ debris_nspfx
Number of debris special effects.
Definition at line 23 of file debris.c.
◆ debris_spfx