SplineEmitterSpawnParticle
function · models · primitive
- Address
0x7b9500· 1065 bytes, up to0x7b9928- Signature
void __thiscall (CParticleEmitter2 *this, void *particle, float dt, const NTempest::C44Matrix *matrix)- Meaning
- Spawns a particle along the emitter's spline with a velocity turned about its tangent
- Confidence
- verified, proof one
- Finding
- models/emission#spline-spawn
- Test
models::emit_shape_spline_difftest
Finding: Spline spawn in models: emission
A spline particle sits at parameter t = start + U·(end − start) of the emitter's spline; after the
end changes, the next one sits at t = end. With a z source its velocity is radial as for a plane.
With a vertical spread v, the direction is +z rotated by S·v about the spline's unit tangent at
t, the velocity is the speed along it, and with a horizontal spread the position moves
U·horizontal along it. With neither, the velocity is (0, 0, speed). The three tests read their
words as integers, so −0.0 counts as set.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 10
- NTempest::CRandom::uint32 random
- EvaluateSplinePoint spline
- EvaluateSplineTangent spline
- SetVector3 spline
- Vector3LengthSquared spline
- CParticleEmitter2::RollSpeed models
- CParticleEmitter2::SnapSpawnToGround models
- TransformPoint cmath
- TransformVector4 cmath
- BuildAxisRotation cmath
Calls and jumps by a bare address, from tables/calls.tsv.