Enumeration PolylineFlags

Flags controlling the behavior of a polyline.

Enumeration Members

Enumeration Members

DEFORMABLE: 2

The polyline is deformable: its vertices may be moved after its creation. Required for a polyline used as a soft body's collision mesh (see World.createDeformableCollider).

ORIENTED: 1

The polyline is one-sided: a pseudo-normal is computed at every vertex and contact normals are clamped to the outward side, the right of each segment's direction (the solid must be wound counter-clockwise). This removes the spurious sideways push a body gets at a convex corner of a double-sided polyline.