Skip to content

Commit

Permalink
Add workaround for extra cull margin/custom AABB-bug
Browse files Browse the repository at this point in the history
  • Loading branch information
GNSS-Stylist committed Feb 7, 2024
1 parent 96b1fac commit 9586e57
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Data/Elite/Thargoid/Thargoid.gd
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,14 @@ var animResetStashDone:bool = false
func _ready():
createMainBodyMesh()
createDebrisField()

# This is a workaround for bug
# https://github.com/godotengine/godot/issues/86369
# (Can't set custom aabb in inspector)
# causing debris to disappear when flying through them.
# Extra cull margin could also work but it crashed the editor:
# https://github.com/godotengine/godot/issues/80504
$MainBody.custom_aabb = AABB(Vector3(0,0,0), Vector3(100, 100, 100))
$DebrisField.custom_aabb = AABB(Vector3(0,0,0), Vector3(100, 100, 100))

var lastDisintegrationFraction:float = 42
func _process(_delta):
Expand Down

0 comments on commit 9586e57

Please sign in to comment.