SphereEmitterSpawnParticle
function · models · primitive
- Address
0x7b8d70· 966 bytes, up to0x7b9135- Signature
void __thiscall (CParticleEmitter2 *this, void *particle, float dt, const NTempest::C44Matrix *matrix)- Meaning
- Spawns a particle on a spherical shell with a radial, +z or outward velocity
- Confidence
- verified, proof one
- Finding
- models/emission#sphere-spawn
- Test
models::emit_shape_sphere_difftest
Finding: Sphere spawn in models: emission
A sphere particle starts at radius R = min + U·(max − min) along (cos A·cos B, cos A·sin B, sin A)
with A = S·vertical and B = S·horizontal. Its velocity is the speed times, in order of
precedence: normalize(p − (0, 0, z)) with a z source; (0, 0, 1) with flag 0x4000; otherwise the
unit direction itself.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 6
- NTempest::CRandom::uint32 random
- SetVector3 spline
- CParticleEmitter2::RollSpeed models
- CParticleEmitter2::SnapSpawnToGround models
- TransformPoint cmath
- TransformVector4 cmath
Calls and jumps by a bare address, from tables/calls.tsv.