Godot::CharacterBody2D
Inherits Godot::PhysicsBody2D < Godot::CollisionObject2D < Godot::Node2D < Godot::CanvasItem < Godot::Node < Godot::Object < Reference < Object
Specialized 2D physics body for character movement, kinematic platforming, and gravity.
Constructors
new(pointer : Pointer(Void) = Pointer(Void).null)
SourceInstance methods
apply_floor_snap
Sourcefloor_block_on_wall?
Sourcefloor_constant_speed?
Sourcefloor_normal
Sourcefloor_stop_on_slope?
Sourceget_floor_max_angle
Sourceget_floor_normal
Sourceget_floor_snap_length
Sourceget_last_motion
Sourceget_last_slide_collision
Sourceget_max_slides
Sourceget_motion_mode
Sourceget_platform_floor_layers
Sourceget_platform_on_leave
Sourceget_platform_velocity
Sourceget_platform_wall_layers
Sourceget_position_delta
Sourceget_real_velocity
Sourceget_safe_margin
Sourceget_slide_collision(slide_idx : Int64) : KinematicCollision2D
Sourceget_slide_collision_count
Sourceget_up_direction
Sourceget_velocity
Sourceget_wall_min_slide_angle
Sourceget_wall_normal
Sourceis_floor_block_on_wall_enabled
Sourceis_floor_constant_speed_enabled
Sourceis_floor_stop_on_slope_enabled
Sourceis_on_ceiling
Sourceis_on_ceiling_only
Sourceis_on_floor
Sourceis_on_floor_only
Sourceis_on_wall
Sourceis_on_wall_only
Sourceis_slide_on_ceiling_enabled
Sourcemove_and_slide
Sourceon_ceiling?
Sourceon_floor?
Sourceon_wall?
Sourcereal_velocity
Sourceset_floor_block_on_wall_enabled(enabled : Bool) : Void
Sourceset_floor_constant_speed_enabled(enabled : Bool) : Void
Sourceset_floor_max_angle(radians : Float64) : Void
Sourceset_floor_snap_length(floor_snap_length : Float64) : Void
Sourceset_floor_stop_on_slope_enabled(enabled : Bool) : Void
Sourceset_max_slides(max_slides : Int64) : Void
Sourceset_motion_mode(mode : Int64) : Void
Sourceset_platform_floor_layers(exclude_layer : Int64) : Void
Sourceset_platform_on_leave(on_leave_apply_velocity : Int64) : Void
Sourceset_platform_wall_layers(exclude_layer : Int64) : Void
Sourceset_safe_margin(margin : Float64) : Void
Sourceset_slide_on_ceiling_enabled(enabled : Bool) : Void
Sourceset_wall_min_slide_angle(radians : Float64) : Void
Sourceslide_on_ceiling?
Sourceup_direction
Sourcevelocity
Source