Skip to content

Interpolation of shearing Transform2D getting unintended results #64252

Closed
@bombzj

Description

@bombzj

Godot version

3.5.stable, 4.0.dev

System information

Windows 10 x64

Issue description

with a Shearing Transform2D as follows
image

After interpolation, it changes to ((1, 0), (-0, 1.414214), (0, 0))

code as follows
var t = Transform2D()
t.y = Vector2.ONE
var result = t.interpolate_with(t, 0.5)
print(result)

Steps to reproduce

GDScript
extends Node2D

func _ready():
var t = Transform2D()
t.y = Vector2.ONE
var result = t.interpolate_with(t, 0.5)
print(result)

Minimal reproduction project

interp.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions