Skip to content

Commit 1e7a716

Browse files
committed
Add a default size
1 parent b4c6c7b commit 1e7a716

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

extensions/reviewed/ParticleEmitter3D.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6995,6 +6995,15 @@
69956995
"",
69966996
"/** @type {gdjs.CustomRuntimeObject} */",
69976997
"const object = objects[0];",
6998+
"// Force the size of the object because it doesn't contain any instance.",
6999+
"object._innerArea = {",
7000+
" min: [-16, -16, -16],",
7001+
" max: [16, 16, 16],",
7002+
" };",
7003+
"const hitbox = new gdjs.Polygon();",
7004+
"hitbox.vertices = [[-16, -16], [16, -16], [16, 16], [-16, 16]];",
7005+
"object._untransformedHitBoxes = [hitbox];",
7006+
"object._updateUntransformedHitBoxes = () => {};",
69987007
"",
69997008
"// Here runtimeScene is the gdjs.CustomRuntimeObjectInstanceContainer inside the custom object.",
70007009
"const gameScene = object.getRuntimeScene();",

0 commit comments

Comments
 (0)