Skip to content

Commit

Permalink
Custom AABB fixed disappearing particles
Browse files Browse the repository at this point in the history
  • Loading branch information
Dayruke committed Aug 26, 2022
1 parent 5311869 commit f889355
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 5 deletions.
16 changes: 16 additions & 0 deletions Particles/FilamentB.tres

Large diffs are not rendered by default.

16 changes: 16 additions & 0 deletions Particles/FilamentD.tres
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[gd_resource type="ArrayMesh" format=2]

[resource]
custom_aabb = AABB( 0, 0, 0, 0, 100, 0 )
surfaces/0 = {
"aabb": AABB( -0.16684, -0.292021, -0.841394, 0.372257, 0.478591, 1.44797 ),
"array_data": PoolByteArray( 209, 175, 141, 61, 165, 17, 179, 188, 149, 71, 27, 63, 25, 12, 200, 39, 142, 53, 70, 26, 115, 158, 177, 189, 193, 200, 171, 189, 255, 92, 244, 62, 194, 237, 189, 8, 75, 55, 110, 46, 163, 116, 233, 60, 190, 159, 218, 61, 132, 184, 138, 62, 13, 83, 169, 63, 150, 52, 187, 51, 27, 216, 42, 190, 132, 240, 232, 60, 105, 198, 66, 190, 149, 26, 237, 15, 177, 54, 142, 56, 25, 87, 220, 60, 53, 12, 63, 62, 153, 155, 143, 61, 249, 95, 166, 56, 157, 51, 32, 54, 115, 158, 177, 189, 193, 200, 171, 189, 255, 92, 244, 62, 194, 237, 44, 44, 66, 46, 62, 45, 129, 204, 206, 187, 178, 76, 47, 190, 202, 249, 82, 190, 210, 164, 85, 44, 176, 49, 107, 56, 27, 216, 42, 190, 132, 240, 232, 60, 105, 198, 66, 190, 149, 26, 228, 9, 0, 0, 92, 56, 174, 188, 228, 60, 109, 59, 237, 61, 219, 52, 214, 190, 38, 114, 134, 80, 83, 52, 186, 57, 2, 155, 211, 189, 201, 227, 201, 189, 242, 153, 4, 191, 157, 199, 9, 27, 75, 55, 72, 58, 88, 85, 143, 61, 196, 11, 66, 190, 12, 31, 145, 62, 29, 183, 56, 176, 42, 57, 253, 55, 125, 6, 84, 60, 125, 202, 129, 190, 203, 185, 20, 189, 191, 201, 202, 96, 200, 56, 105, 52, 129, 204, 206, 187, 178, 76, 47, 190, 202, 249, 82, 190, 210, 164, 162, 94, 42, 57, 1, 49, 125, 6, 84, 60, 125, 202, 129, 190, 203, 185, 20, 189, 191, 201, 203, 95, 156, 56, 137, 52, 88, 85, 143, 61, 196, 11, 66, 190, 12, 31, 145, 62, 29, 183, 177, 52, 200, 56, 253, 55, 114, 52, 39, 62, 199, 131, 149, 190, 222, 61, 224, 189, 69, 171, 169, 33, 75, 55, 236, 51, 88, 85, 143, 61, 196, 11, 66, 190, 12, 31, 145, 62, 29, 183, 164, 26, 155, 57, 0, 60, 214, 88, 82, 62, 94, 47, 205, 61, 56, 18, 232, 60, 72, 39, 47, 22, 75, 55, 161, 58, 114, 52, 39, 62, 199, 131, 149, 190, 222, 61, 224, 189, 69, 171, 197, 38, 135, 57, 39, 58, 209, 175, 141, 61, 165, 17, 179, 188, 149, 71, 27, 63, 25, 12, 63, 27, 15, 58, 0, 60, 163, 116, 233, 60, 190, 159, 218, 61, 132, 184, 138, 62, 13, 83, 124, 45, 181, 57, 75, 58, 198, 105, 232, 61, 81, 133, 191, 188, 17, 111, 61, 62, 71, 21, 70, 17, 155, 58, 75, 58, 25, 87, 220, 60, 53, 12, 63, 62, 153, 155, 143, 61, 249, 95, 117, 68, 155, 57, 58, 57, 209, 175, 141, 61, 165, 17, 179, 188, 149, 71, 27, 63, 25, 12, 23, 123, 0, 60, 159, 49, 198, 105, 232, 61, 81, 133, 191, 188, 17, 111, 61, 62, 71, 21, 227, 110, 0, 60, 41, 55, 88, 85, 143, 61, 196, 11, 66, 190, 12, 31, 145, 62, 29, 183, 45, 80, 35, 59, 188, 53, 214, 88, 82, 62, 94, 47, 205, 61, 56, 18, 232, 60, 72, 39, 58, 20, 209, 58, 24, 57, 88, 85, 143, 61, 196, 11, 66, 190, 12, 31, 145, 62, 29, 183, 110, 13, 209, 58, 88, 59, 2, 155, 211, 189, 201, 227, 201, 189, 242, 153, 4, 191, 157, 199, 62, 18, 120, 45, 36, 58, 51, 79, 174, 61, 158, 65, 51, 190, 91, 233, 221, 190, 56, 175, 69, 84, 157, 51, 178, 57, 129, 204, 206, 187, 178, 76, 47, 190, 202, 249, 82, 190, 210, 164, 175, 79, 200, 56, 18, 49, 113, 4, 57, 62, 1, 80, 165, 189, 93, 82, 181, 189, 119, 219, 232, 6, 131, 56, 31, 58, 174, 188, 228, 60, 109, 59, 237, 61, 219, 52, 214, 190, 38, 114, 102, 18, 19, 56, 253, 55, 51, 79, 174, 61, 158, 65, 51, 190, 91, 233, 221, 190, 56, 175, 177, 37, 41, 57, 60, 56, 119, 19, 124, 61, 97, 109, 12, 188, 153, 101, 87, 191, 118, 125, 198, 26, 27, 53, 0, 60, 88, 85, 143, 61, 196, 11, 66, 190, 12, 31, 145, 62, 29, 183, 103, 87, 157, 51, 233, 50, 209, 175, 141, 61, 165, 17, 179, 188, 149, 71, 27, 63, 25, 12, 121, 47, 188, 49, 0, 0, 129, 204, 206, 187, 178, 76, 47, 190, 202, 249, 82, 190, 210, 164, 188, 75, 155, 57, 74, 57, 119, 19, 124, 61, 97, 109, 12, 188, 153, 101, 87, 191, 118, 125, 102, 51, 28, 49, 0, 60, 174, 188, 228, 60, 109, 59, 237, 61, 219, 52, 214, 190, 38, 114, 109, 50, 48, 58, 41, 55, 174, 188, 228, 60, 109, 59, 237, 61, 219, 52, 214, 190, 38, 114, 131, 83, 35, 59, 50, 52, 119, 19, 124, 61, 97, 109, 12, 188, 153, 101, 87, 191, 118, 125, 145, 71, 35, 59, 41, 55, 219, 192, 45, 62, 201, 142, 141, 58, 187, 240, 27, 191, 107, 31, 186, 117, 110, 58, 85, 54, 51, 79, 174, 61, 158, 65, 51, 190, 91, 233, 221, 190, 56, 175, 75, 87, 155, 57, 183, 51, 219, 192, 45, 62, 201, 142, 141, 58, 187, 240, 27, 191, 107, 31, 54, 4, 209, 58, 193, 58, 119, 19, 124, 61, 97, 109, 12, 188, 153, 101, 87, 191, 118, 125, 189, 31, 163, 59, 142, 57, 51, 79, 174, 61, 158, 65, 51, 190, 91, 233, 221, 190, 56, 175, 171, 34, 163, 59, 0, 60 ),
"array_index_data": PoolByteArray( 0, 0, 1, 0, 2, 0, 1, 0, 3, 0, 4, 0, 5, 0, 6, 0, 7, 0, 4, 0, 3, 0, 8, 0, 3, 0, 9, 0, 8, 0, 10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0, 21, 0, 21, 0, 20, 0, 22, 0, 23, 0, 24, 0, 25, 0, 26, 0, 27, 0, 21, 0, 28, 0, 6, 0, 29, 0, 13, 0, 15, 0, 30, 0, 31, 0, 32, 0, 33, 0, 8, 0, 9, 0, 34, 0, 5, 0, 35, 0, 6, 0, 1, 0, 4, 0, 2, 0, 7, 0, 6, 0, 28, 0, 17, 0, 31, 0, 18, 0, 35, 0, 5, 0, 36, 0, 21, 0, 22, 0, 26, 0, 37, 0, 31, 0, 33, 0, 18, 0, 31, 0, 37, 0, 29, 0, 38, 0, 28, 0, 26, 0, 22, 0, 39, 0, 17, 0, 32, 0, 31, 0, 40, 0, 41, 0, 42, 0, 43, 0, 40, 0, 42, 0, 44, 0, 45, 0, 46, 0 ),
"blend_shape_data": [ ],
"format": 2194711,
"index_count": 90,
"name": "None",
"primitive": 4,
"skeleton_aabb": [ ],
"vertex_count": 47
}
Loading

0 comments on commit f889355

Please sign in to comment.