Files
EGJ25/addons/guide/modifiers/guide_modifier_normalize.gd
minimata 9a79715e47
All checks were successful
Create tag and build when new code gets to main / BumpTag (push) Successful in 6s
Create tag and build when new code gets to main / Export (push) Successful in 3m16s
feat: made sure the aspect ration fit a pixel art game and added useful addons
2025-06-27 15:19:12 +02:00

18 lines
409 B
GDScript

## Normalizes the input vector.
@tool
class_name GUIDEModifierNormalize
extends GUIDEModifier
func _modify_input(input:Vector3, delta:float, value_type:GUIDEAction.GUIDEActionValueType) -> Vector3:
if not input.is_finite():
return Vector3.INF
return input.normalized()
func _editor_name() -> String:
return "Normalize"
func _editor_description() -> String:
return "Normalizes the input vector."