Add mid height property to CapsuleShape2D/3D

This commit is contained in:
Aaron Franke
2024-07-01 15:55:57 -07:00
parent 730adf4801
commit 9f38cfe3ca
9 changed files with 81 additions and 22 deletions

View File

@ -11,7 +11,10 @@
</tutorials>
<members>
<member name="height" type="float" setter="set_height" getter="get_height" default="30.0">
The capsule's height.
The capsule's full height, including the semicircles.
</member>
<member name="mid_height" type="float" setter="set_mid_height" getter="get_mid_height">
The capsule's height, excluding the semicircles. This is the height of the central rectangular part in the middle of the capsule, and is the distance between the centers of the two semicircles. This is a wrapper for [member height].
</member>
<member name="radius" type="float" setter="set_radius" getter="get_radius" default="10.0">
The capsule's radius.