Skip to content

Parallax2D (and ParallaxLayer) applies repeat to children nodes before their rotation #95574

Closed
@squirrel-bat

Description

@squirrel-bat

Tested versions

v4.3.stable.official [77dcf97]

System information

Godot v4.3.stable - Pop!_OS 22.04 LTS - Wayland - GLES3 (Compatibility) - AMD Radeon Graphics (radeonsi, raphael_mendocino, LLVM 15.0.7, DRM 3.57, 6.9.3-76060903-generic) - AMD Ryzen 7 7800X3D 8-Core Processor (16 Threads)

Issue description

With the introduction of Parallax2D nodes, repeated children nodes will be placed in respect to their own rotation.
In the screenshot below, the sprite seen on the right is the repeat of the Sprite2D on the left side, with it's rotation set to 12° and Parallax2D's rotation left at 0°.

The same issue occurs with a setup of ParallaxBackground > ParallaxLayer > Sprite2D.

Screenshot from 2024-08-15 18-47-03

I am not sure if this is the intended behaviour? Please let me know if there is missing information or if I am misunderstanding how Parallax2D works! :)

Steps to reproduce

  • Create a Parallax2D node and set any Repeat Size with a minimum Repeat Times of 1
  • Add a child node (Sprite2D) and set it's rotation to anything other than 0°

Minimal reproduction project (MRP)

parallax_demo_MRP.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