Physics · function

validateClothSetup

Refuse a set-up whose arrays disagree, naming the array and both lengths.

Explained in Your first game, Rigid bodies.

function validateClothSetup(setup: SkinnedClothSetup): void
import { validateClothSetup } from '@driftengine/physics';

Parameters

ParameterTypeDescription
setupSkinnedClothSetup