Hello, :tiphat:
I'm trying to use "AddParticleStream" but I fail to input the 4th parameter, which is supposed to be a double *
I've tried this, but I can't find out how to get it to work. What I (think to) know is that I need to convert a double (lvl) to a pointer (lvl*).
Thanks for your help.
I'm trying to use "AddParticleStream" but I fail to input the 4th parameter, which is supposed to be a double *
PSTREAM_HANDLE VESSEL::AddParticleStream ( PARTICLESTREAMSPEC * pss,
const VECTOR3 & pos,
const VECTOR3 & dir,
double * lvl
)
const
Adds a custom particle stream to a vessel.
Parameters:
pss pointer to particle stream definition structure
pos particle source position in vessel coordinates [m]
dir particle emission direction in vessel coordinates
lvl pointer to scaling factor
I've tried this, but I can't find out how to get it to work. What I (think to) know is that I need to convert a double (lvl) to a pointer (lvl*).
Code:
double lvl = 1;
*lvl = static_cast<double*>(lvl);
AddParticleStream(&contrail_main, _V(0,1.25,-18.65), _V(0,0,-1), *lvl);
Thanks for your help.
Last edited: