Immersive Intelligence

Immersive Intelligence

2M Downloads

[Bug]: Crate opening animation is slightly slower than closing animation

LolscopeDev2022 opened this issue · 2 comments

commented

Initial Check

  • I have checked the existing issues and this one is not a duplicate

Category

🧊Rendering

Description

Exactly what title says. THOUGH, it might be just me.

Side

Client

Reproduction

Open the ammo/medical/repair crate by RMB+Shift

Expected Behaviour

Timing of the animations should be equal in both opening and closing

Logs

No response

Other Evidence

No response

Operating System

Linux

Minecraft Version

1.12.2

Immersive Intelligence Version

0.3.1-dev2

Immersive Engineering Version

0.98

commented

How much slower is it? If its massive, we should fix it, otherwise its probably minor enough just to leave it and close the issue

commented

This is intended,

float progress = Math.min(1.5f, Math.max(te.lidAngle+(te.open?0.2f*partialTicks: -0.3f*partialTicks), 0f))/1.5f;

@Avalon2106 instead of altering the speed, rewrite this line to use getAnimationProgress method from IIAnimationUtils.