or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Do you want to remove this version name and description?
Syncing
xxxxxxxxxx
2d Transforms & Sorting
The purpose of this working group is to improve Bevy’s 2D support by adding a specialized 2D transform.
There's an abnormally large number of closely linked PRs in development that touch this topic: A 2d transform PR, a UI transform PR, a y-sorting PR, as well as the new tilemap renderer. So part of the purpose of this document is cross-initiative coordination.
Proposal
ZIndex
andGlobalZIndex
with a field onUiTransform
.ZIndex
andYSort
are fields ofTransform2d
(leave outSortBias
for now) andZIndex
actually effects theGlobalTransform
.Demonstration
Here's an overview of what this would look like. (WIP)
Mixing 2d and 3d transforms in the same hierarchy is allowed. Both compute
GlobalTransform
given the parent'sGlobalTransform
(if it exists).We will use hooks to enforce archetype invariants: Adding one transform type automatically removes the other transform type.
Relative values for
depth
are incorperated into transform prop.depth
is effectivly the same as thez
position component onTransform3d
, but with the option to specify it in absolute terms.Camera
will no longer requireTransform
. InsteadCamera3d
will requireTransform3d
andCamera2d
will requireTransform2d
.