AutoMovie API
    Preparing search index...

    Variable applySoftBodyFrictionConst

    applySoftBodyFriction: (props: IAutoMovieApplySoftBodyFriction.IProps) => void = ...

    Apply Coulomb friction to one particle a collider has just pushed out, in place: the position-based friction of Macklin, Müller, Chentanez and Kim 2014 ("Unified particle physics for real-time applications", ACM TOG 33(4):153, section 6.1), with one coefficient for sticking and sliding.

    The collider's push (the predicted position after contact projection less the one before it) gives the contact normal and the penetration depth d. The particle's travel over the step (its predicted position less its position at the step's start) is split into its part along the normal and its tangential part t. A tangential travel shorter than mu d is removed entirely, so the particle sticks; a longer one is shortened by mu d, so it slides against a force bounded by mu times the normal one. The collider is taken as still over the step: a static collider is, and a moving body capsule's own travel is not subtracted, so friction against a moving limb drags the cloth toward rest rather than along with the limb.

    Type Declaration