Improve ECB behaviour, add ECB interpolation, wall/ceiling support etc (#94)
Reviewed-on: #94 Co-authored-by: Álex Román Núñez <eirexe@eirteam.moe>
This commit was merged in pull request #94.
This commit is contained in:
@@ -134,12 +134,10 @@ pub fn collision_interrupt(
|
||||
}
|
||||
|
||||
let res = ctx.air_collide_with_stage(can_ignore_soft_platforms)?;
|
||||
let diff = res.hit_position - ctx.translation.0;
|
||||
ctx.ecb.bottom -= diff;
|
||||
ctx.ecb.top -= diff;
|
||||
ctx.ecb.left -= diff;
|
||||
ctx.ecb.right -= diff;
|
||||
ctx.translation.0 = res.hit_position;
|
||||
ctx.translation.0 = res.resolved_translation;
|
||||
let bottom_offset = ctx.ecb.rebase_onto_bottom();
|
||||
ctx.translation.0 += bottom_offset;
|
||||
*ctx.desired_ecb = crate::fighter::ecb::FighterDesiredECB::from(*ctx.ecb);
|
||||
ctx.presentation_snap.0 = true;
|
||||
ctx.surface.land(res.line_id, ctx.ledge_info);
|
||||
Some(FighterState::Land(LandingState::create(landing_type)))
|
||||
|
||||
Reference in New Issue
Block a user