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...
CapsuleShape3D¶
Inherits: Shape3D < Resource < RefCounted < Object
Capsule shape resource for 3D collisions.
Description¶
3D capsule shape to be added as a direct child of a PhysicsBody3D or Area3D using a CollisionShape3D node. In 3D, a capsule is a cylinder shape with hemispheres at both ends.
Performance: Being a primitive collision shape, CapsuleShape3D is fast to check collisions against (though not as fast as SphereShape3D). CapsuleShape3D is cheaper to check collisions against compared to CylinderShape3D.
Tutorials¶
Properties¶
|
||
|
Property Descriptions¶
float height = 2.0
The capsule's height.
float radius = 0.5
The capsule's radius.