Table of Contents

Class CapsuleShape2D

A 2D capsule shape used for physics collision.

Inheritance
CapsuleShape2D

Remarks

A 2D capsule shape, intended for use in physics. Usually used to provide a shape for a CollisionShape2D.

Performance: CapsuleShape2D is fast to check collisions against, but it is slower than RectangleShape2D and CircleShape2D.

Properties

height

The capsule's height.

var height : float = 30.0

Property Value

float

Remarks

radius

The capsule's radius.

var radius : float = 10.0

Property Value

float

Remarks