Class IntegrationParameters

Hierarchy

  • IntegrationParameters

Constructors

  • Parameters

    • Optional raw: RawIntegrationParameters

    Returns IntegrationParameters

Properties

raw: RawIntegrationParameters

Accessors

  • get dt(): number
  • The timestep length (default: 1.0 / 60.0)

    Returns number

  • set dt(value: number): void
  • Parameters

    • value: number

    Returns void

  • get erp(): number
  • The Error Reduction Parameter in [0, 1] is the proportion of the positional error to be corrected at each time step (default: 0.2).

    Returns number

  • set erp(value: number): void
  • Parameters

    • value: number

    Returns void

  • get lengthUnit(): number
  • Returns number

  • set lengthUnit(value: number): void
  • Parameters

    • value: number

    Returns void

  • get maxCcdSubsteps(): number
  • Maximum number of substeps performed by the solver (default: 1).

    Returns number

  • set maxCcdSubsteps(value: number): void
  • Parameters

    • value: number

    Returns void

  • get minIslandSize(): number
  • Minimum number of dynamic bodies in each active island (default: 128).

    Returns number

  • set minIslandSize(value: number): void
  • Parameters

    • value: number

    Returns void

  • get normalizedAllowedLinearError(): number
  • Normalized amount of penetration the engine won’t attempt to correct (default: 0.001m).

    This threshold considered by the physics engine is this value multiplied by the lengthUnit.

    Returns number

  • set normalizedAllowedLinearError(value: number): void
  • Parameters

    • value: number

    Returns void

  • get normalizedPredictionDistance(): number
  • The maximal normalized distance separating two objects that will generate predictive contacts (default: 0.002).

    This threshold considered by the physics engine is this value multiplied by the lengthUnit.

    Returns number

  • set normalizedPredictionDistance(value: number): void
  • Parameters

    • value: number

    Returns void

  • get numAdditionalFrictionIterations(): number
  • Number of addition friction resolution iteration run during the last solver sub-step (default: 4).

    Returns number

  • set numAdditionalFrictionIterations(value: number): void
  • Sets the number of addition friction resolution iteration run during the last solver sub-step (default: 4).

    Parameters

    • value: number

    Returns void

  • get numInternalPgsIterations(): number
  • Number of internal Project Gauss Seidel (PGS) iterations run at each solver iteration (default: 1).

    Returns number

  • set numInternalPgsIterations(value: number): void
  • Sets the number of internal Project Gauss Seidel (PGS) iterations run at each solver iteration (default: 1).

    Parameters

    • value: number

    Returns void

  • get numSolverIterations(): number
  • The number of solver iterations run by the constraints solver for calculating forces (default: 4).

    Returns number

  • set numSolverIterations(value: number): void
  • Sets the number of solver iterations run by the constraints solver for calculating forces (default: 4).

    Parameters

    • value: number

    Returns void

Methods

  • Free the WASM memory used by these integration parameters.

    Returns void

  • Returns void

  • Returns void

  • Returns void

Generated using TypeDoc