What this component contains
ATTRIBUTION.mdLICENSEREADME.mdbaltor_test.gdcomponent.jsonexample.tscninspect_gdscript.pyplatformer_controller_2d.gdrun_tests.gdtest_package.pytests/test_platformer_controller_2d.gdverification/native.json
How it works
- Class
- BaltorPlatformerController2D, extends CharacterBody2D
- Methods
- jump_velocity() -> float; rise_gravity() -> float; set_move_axis(axis: float) -> void; press_jump() -> void; release_jump() -> void; can_jump(on_floor: bool) -> bool; step(delta: float, on_floor: bool) -> Vector2
- Signals
- jumped, landed
- Exports
- move_speed, ground_acceleration, ground_deceleration, air_acceleration, jump_height, time_to_apex, fall_gravity_multiplier, jump_cut_multiplier and 7 more
- Placement
- res://baltor/godot_components/platformer_controller_2d/
Recorded checks
godot 4.7.2.stable.official.ed1daf0bf
godot_parse_check_onlygodot_gdscript_testsgodot_tests_reject_gutted_componentgodot_editor_importgodot_contract_reflectiongodot_example_scenegodot_readme_usage_compiles
Limits to consider
Side view with up as -y only; no slopes tuning, wall jumps, ladders or one-way platform drop-through. Gravity comes from the jump settings and ignores the project gravity setting. The apex height matches the design value up to the integration error of the physics step (about 2 percent at 120 Hz in the tests). Verified with Godot 4.7.2 headless; written against the Godot 4.3 API.