Skip to content

Commit

Permalink
Optimized burnout particles when burning out
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtyIF committed Dec 7, 2024
1 parent 2f68f36 commit 9aa9e2f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions addons/aacc/scripts/car_wheel.gd
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,10 @@ func update_burnout() -> void:
return

var burnout_amount: float = car.burnout_amount
if car.local_linear_velocity.length() < 0.25 and ((freeze_on_handbrake and car.input_handbrake) or block_wheelspin):
burnout_amount = 0.0
if car.local_linear_velocity.length() < 0.25:
burnout_amount /= 5.0
if (freeze_on_handbrake and car.input_handbrake) or block_wheelspin:
burnout_amount = 0.0

if skid_trail:
skid_trail.is_emitting = burnout_amount > 0.0
Expand Down

0 comments on commit 9aa9e2f

Please sign in to comment.