Commit 6a00fff
committed
platform: Make collision shapes local to scene
Previously, the collision shapes were shared between each instance of
the scene.
This means that if you placed 2 platforms in a scene, and set one of
them to be 2 tiles wide and the other to 3 tiles wide, the collision
shapes would both be as wide as the last platform in the scene tree,
rather than matching their visible size.
Making the resources local_to_scene causes them to be duplicated when
the scene is instanced.1 parent bf74940 commit 6a00fff
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| 10 | + | |
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
| |||
0 commit comments