class_capsuleshape2d - dragonsoulz/godot GitHub Wiki

CapsuleShape2D

####Inherits: Shape2D ####Category: Core

Brief Description

Capsule 2D shape resource for physics.

Member Functions

Description

Capsule 2D shape resource for physics. A capsule (or sometimes called "pill") is like a line grown in all directions. It has a radius and a height, and is often useful for modelling biped characters.

Member Function Description

set_radius

  • void set_radius ( float radius )

Radius of the CapsuleShape2D.

get_radius

  • float get_radius ( ) const

Return the radius of the CapsuleShape2D.

set_height

  • void set_height ( float height )

Height of the CapsuleShape2D.

get_height

  • float get_height ( ) const

Return the height of the CapsuleShape2D.