collisionShape property
Shape
get
collisionShape
The matching physics collision shape, a capsule with the same radius and mid-section half-height.
Implementation
Shape get collisionShape =>
capsuleCollisionShape(radius: _radius, height: _height);