[][src]Module cyclone2d::contact_generators

Structs

AreaContact

Simulates a containment

Cable

Simulates a cable which is slack until it reaches its maximum length. The cable joins two particles together.

CableConstraint

Simulates a cable which is slack until it reaches its maximum length. This version can anchor to any point specified by a Vec2d.

Contact
GroundContact

Simulates a basic ground surface constraint

Rod

A rod simulates a hard constraint where the distance of two particles can not be above or below the length specified.

RodConstraint

A rod simulates a hard constraint where the distance of two particles can not be above or below the length specified. This version may be anchored to any point specified by a Vec2d

Traits

ContactGenerator

The generator itself can have any kind of structure, but must implement this trait to be able to add any found contacts to the contact list. This method is called on each generator in turn per physics 'tick'