mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Merge branch 'adaptive-starpost' into 'master'
Starpost visual fixes See merge request KartKrew/Kart!2433
This commit is contained in:
commit
06dd8f937c
1 changed files with 10 additions and 1 deletions
|
|
@ -405,10 +405,19 @@ private:
|
|||
fixed_t ofs = (kSparkleOffset * scale) + r;
|
||||
fixed_t between = R_PointToDist2(x, y, other()->x, other()->y);
|
||||
|
||||
angle_t pitch = R_PointToAngle2(0, z, between, other()->z);
|
||||
vector3_t step = {
|
||||
FixedMul(FCOS(a), FCOS(pitch)),
|
||||
FixedMul(FSIN(a), FCOS(pitch)),
|
||||
FSIN(pitch)
|
||||
};
|
||||
|
||||
between = R_PointToDist2(0, z, between, other()->z);
|
||||
|
||||
for (; ofs < between; ofs += 2 * r)
|
||||
{
|
||||
spawn_sparkle(
|
||||
{x + FixedMul(ofs, FCOS(a)), y + FixedMul(ofs, FSIN(a)), z + (kSparkleZ * scale)},
|
||||
{x + FixedMul(ofs, step.x), y + FixedMul(ofs, step.y), z + (kSparkleZ * scale) + FixedMul(ofs, step.z)},
|
||||
momentum,
|
||||
momentum / 2,
|
||||
dir,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue