Matrix Lerp not working as i expect

Hi everyone!

I am currently trying to interpolate between two matrices, but the results (using matrix.lerp) are not as i expect.

Please check out the following PG:

https://playground.babylonjs.com/#JE8YDR

The left and the right box are hardcoded, the middle one should be in between those, because i use interpolated values of the surrounding boxes to set the transformartions…

Am i missing something?

Thanks in advance for any hint!

Greets,
Sophie

Hey Sophie! (Are you french by any chance?)

So:
https://playground.babylonjs.com/#JE8YDR#1

the property is “position” and not translation and the gradient is between 0 and 1 :slight_smile:

1 Like

great thanks! :sunny:
no i am german :wink:

Close :smiley: