Skip to content

Commit

Permalink
stage6: ricci: disable collision lerp for the danmaku field
Browse files Browse the repository at this point in the history
  • Loading branch information
Akaricchi committed Sep 7, 2023
1 parent 8847d79 commit e86b124
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/stages/stage6/spells/ricci.c
Original file line number Diff line number Diff line change
Expand Up @@ -219,10 +219,9 @@ TASK(ricci_proj, { cmplx pos; cmplx velocity; BoxedEllyBaryons baryons; }) {
.max_viewport_dist = SAFE_RADIUS_MAX,
));


for(int t = 0;; t++) {
cmplx shift = 0;
p->pos = ARGS.pos + ARGS.velocity * t;
p->pos = p->prevpos = ARGS.pos + ARGS.velocity * t;

EllyBaryons *baryons = ENT_UNBOX(ARGS.baryons);
if(baryons == NULL) {
Expand Down Expand Up @@ -252,7 +251,7 @@ TASK(ricci_proj, { cmplx pos; cmplx velocity; BoxedEllyBaryons baryons; }) {
return;
}

p->pos = ARGS.pos + ARGS.velocity * t + shift;
p->pos = p->prevpos = ARGS.pos + ARGS.velocity * t + shift;

float a = 0.5 + 0.5 * fmax(0, tanh((time - 80) / 100.)) * clamp(influence, 0.2, 1);
a *= fmin(1, t / 20.0f);
Expand Down

0 comments on commit e86b124

Please sign in to comment.