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.