Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
CapsuleShape2D¶
Inherits: Shape2D < Resource < RefCounted < Object
Capsule shape resource for 2D physics.
Description¶
2D capsule shape to be added as a direct child of a PhysicsBody2D or Area2D using a CollisionShape2D node. In 2D, a capsule is a rectangle shape with half-circles at both ends.
Performance: Being a primitive collision shape, CapsuleShape2D is fast to check collisions against (though not as fast as CircleShape2D).
Properties¶
|
||
|
Property Descriptions¶
float height = 30.0
The capsule's height.
float radius = 10.0
The capsule's radius.