Replies: 1 comment 1 reply
-
Consider using the RemoteTransform node to achieve this without relying on |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As of beta11, the property top_level enables drawing on top of other CanvasItems and also disables inheriting transformations. From what I could make of reading the source code, these are two completely separate operations which can (and should) be split into two different properties.
This would be incredibly useful for me as my implementation of physics interpolation currently depends on this structure:
PhysicsBody2D
---PhysicsInterpolation2D (extends Node2D)
------Sprite2D, etc.
Because I'm interpolating the transform of the PhysicsInterpolation2D node, I want to disable transform propagation for that specific node and calculate its transform manually. I can't use a plain Node and calculate child transforms because I need the YSorting functionality (as an aside, YSorting—in its current state—is also severely detrimental to my mental health). The top_level property allows for ignoring transform propagation, but it also draws the children on top of everything (bad!!!).
Currently, I'm reading the parent transform every physics frame and applying an interpolated transform every process frame, but even then I don't have the peace of mind that the transform is properly interpolated at all times.
Beta Was this translation helpful? Give feedback.
All reactions