addCapsule(length, radius, offsetX, offsetY, rotation) → {p2.Capsule}
Adds a Capsule shape to this Body.You can control the offset from the center of the body and the rotation.
Parameters
Name Type Argument Default Description length number The distance between the end points in pixels. radius number Radius of the capsule in pixels. offsetX number <optional> 0 Local horizontal offset of the shape relative to the body center of mass. offsetY number <optional>