Module liquidfun::box2d::collision::shapes::chain_shape [] [src]

Structs

ChainShape

A chain shape is a free form sequence of line segments. The chain has two-sided collision, so you can use inside and outside collision. Therefore, you may use any winding order. Since there may be many vertices, they are allocated using b2Alloc. Connectivity information is used to create smooth collisions. WARNING: The chain will not collide properly if there are self-intersections.

Functions

from_shape

Cast a ChainShape from a B2Shape.