What this component contains
ATTRIBUTION.mdLICENSEREADME.mdbaltor_test.gdcomponent.jsoninspect_gdscript.pyknockback_receiver.gdrun_tests.gdtest_package.pytests/test_knockback_receiver.gdverification/native.json
How it works
- Class
- BaltorKnockback, extends Node
- Methods
- apply_knockback(direction: Vector2, strength: float) -> void; advance(delta: float) -> Vector2; get_velocity() -> Vector2; is_stunned() -> bool; get_stun_left() -> float; clear() -> void
- Signals
- knocked, stun_ended
- Exports
- weight, friction, min_speed, stun_per_unit, max_stun, auto_advance
- Placement
- res://baltor/godot_components/knockback_receiver/
Recorded checks
godot 4.7.2.stable.official.ed1daf0bf
godot_parse_check_onlygodot_gdscript_testsgodot_tests_reject_gutted_componentgodot_editor_importgodot_contract_reflectiongodot_readme_usage_compiles
Limits to consider
Owner-driven: it computes a velocity to add and does not move anything. 2D vectors. The stun is a timer only; animations and AI pauses are up to the owner. Verified with Godot 4.7.2 headless; written against the Godot 4.3 API.