change collisionshape height

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By avity

I’m using C# and I’m new to godot.
I’m wondering how I am able to change a 3D Capsule CollisionShape’s height.
According to the docs I use .set_height() but it doesn’t explain any further.

:bust_in_silhouette: Reply From: juppi

You can use the Scale property on the CollisionShape.

This for example doubles the height of the shape on the y-axis:

_collisionShape.Scale *= new Vector3(1, 2, 1);