CapsuleShape

Inherits: Shape < Resource < Reference < Object

Category: Core

Brief Description

Capsule shape resource.

Member Functions

float get_height ( ) const
float get_radius ( ) const
void set_height ( float height )
void set_radius ( float radius )

Description

Capsule shape resource, which can be set into a PhysicsBody or area.

Member Function Description

float get_height ( ) const

Return the capsule height.

float get_radius ( ) const

Return the capsule radius.

void set_height ( float height )

Set the capsule height.

void set_radius ( float radius )

Set the capsule radius.

© 2014–2020 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.
https://docs.godotengine.org/en/2.1/classes/class_capsuleshape.html