CapsuleShape2D
Inherits: Shape2D < Resource < Reference < Object
Category: Core
Brief Description
Capsule 2D shape resource for physics.
Member Functions
float | get_height ( ) const |
float | get_radius ( ) const |
void | set_height ( float height ) |
void | set_radius ( float radius ) |
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 modeling biped characters.
Member Function Description
float get_height ( ) const
Return the height of the CapsuleShape2D.
float get_radius ( ) const
Return the radius of the CapsuleShape2D.
void set_height ( float height )
Set the height of the CapsuleShape2D.
void set_radius ( float radius )
Set the radius of the CapsuleShape2D.
© 2014–2020 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.
https://docs.godotengine.org/en/2.1/classes/class_capsuleshape2d.html