Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • World

Index

Constructors

constructor

  • Parameters

    • bounds: Rect = null

    Returns World

Properties

bounds

bounds: Rect

constraints

constraints: Constraint[]

forces

forces: Force[]

friction

friction: number = .75

interactionForces

interactionForces: InteractionForce[]

particles

particles: Particle[]

springs

springs: Spring[]

Methods

addConstraint

addForce

  • addForce(f: Force): void
  • Parameters

    Returns void

addInteractionForce

addParticle

addSpring

  • Parameters

    Returns void

removeConstraint

removeForce

  • removeForce(f: Force): void
  • Parameters

    Returns void

removeInteractionForce

removeParticle

removeSpring

  • removeSpring(s: Spring): void
  • Parameters

    Returns void

update

  • update(): void
  • Returns void