My Open/CloseDoor values

I’m using the FMath::FInterpTo() the Sam introduced as an alternative to the Lerp() function Mike uses in the lectures.

For OpenDoor I have DeltaTime * 20 for CloseDoor I went with DeltaTime * 500 and in the header I am using float DoorCloseDelay = 0.5f

Initially I had a much slower CloseDoor multiplier for Delta, DeltaTime * 30 but without the delay, and that made it impossible to escape from my second room as well, but I do like the delay and rapid closing better than slow opening and immediate slow closing. Makes the escape seem a little more doable.

1 Like

I agree.

Privacy & Terms