Skip to content

class_capsuleshape2d

reduz edited this page Feb 23, 2014 · 10 revisions

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

  • void set&#95radius ( real radius )

Radius of the CapsuleShape2D.

  • real get&#95radius ( ) const

Return the radius of the CapsuleShape2D.

  • void set&#95height ( real height )

Height of the CapsuleShape2D.

  • real get&#95height ( ) const

Return the height of the CapsuleShape2D.

Clone this wiki locally