interface for adjustment physics simulation.

Hierarchy

  • PhysicsSimulator

Methods

  • Reset simulator to default state

    Returns void

  • Add constraint between bone1 and bone2.

    Parameters

    • bone1Name: string

      from bone name

    • bone2Name: string

      to bone name

    • distance: number

      constaint length

    Returns void

  • Sets damping value.

    Parameters

    • damping: number

      damping value

    Returns void

  • Sets gravitation vector.

    Parameters

    • gravity: Vec3

      gravity value

    Returns void

  • Sets inverse bone mass.

    Parameters

    • boneName: string

      bone name

    • value: number

      inverse bone mass

    Returns void

  • Add sphere collider.

    Parameters

    • sphereIndex: number

      index for sphere

    • center: Vec3

      sphere center in world space

    • radius: number

      sphere radius

    Returns void