Options
All
  • Public
  • Public/Protected
  • All
Menu

quark2d

Index

Properties

default

default: { AABB: typeof AABB; AABBTree: typeof AABBTree; AABBTreeNode: typeof AABBTreeNode; Body: typeof Body; BodyType: typeof BodyType; Broadphase: typeof Broadphase; Circle: typeof Circle; CircleVsCircle: (pair: Pair) => void; Colliders: {}; Common: typeof Common; Contact: typeof Contact; Convex: typeof Convex; ConvexVsCircle: (pair: Pair) => void; DistJoint: typeof DistJoint; Draw: typeof Draw; EPA: (points: SupportPoint[], shapeA: Shape<any>, shapeB: Shape<any>, output: SupportPoint[]) => void; Edge: typeof Edge; EdgeVsCircle: (pair: Pair) => void; Engine: typeof Engine; Events: typeof Events; Factory: typeof Factory; FactoryBody: typeof FactoryBody; FactoryShape: typeof FactoryShape; Filter: typeof Filter; GJK: (shapeA: Shape<any>, shapeB: Shape<any>, useEpa: boolean, output: SupportPoint[]) => boolean; Grid: typeof Grid; GridBroadphase: typeof GridBroadphase; Intersection: typeof Intersection; Joint: typeof Joint; JointType: typeof JointType; Manager: typeof Manager; Midphase: typeof Midphase; Mouse: typeof Mouse; MouseJoint: typeof MouseJoint; Narrowphase: typeof Narrowphase; Pair: typeof Pair; Ray: typeof Ray; RaycastResult: typeof RaycastResult; Render: typeof Render; Runner: typeof Runner; RunnerType: typeof RunnerType; Settings: { collisionMotionSleepLimit: number; defaultDensity: number; defaultFriction: number; defaultRadius: number; defaultRestitution: number; depthDamping: number; maxEPAIterations: number; maxGJKIterations: number; motionSleepLimit: number; restitutionThreshold: number; sleepyTime: number; slop: number }; Shape: typeof Shape; ShapeType: typeof ShapeType; Sleeping: typeof Sleeping; SleepingState: typeof SleepingState; SleepingType: typeof SleepingType; Solver: typeof Solver; Timer: typeof Timer; Vector: typeof Vector; Vertex: typeof Vertex; Vertices: typeof Vertices; World: typeof World; circleTest: (from: Vector, delta: Vector, position: Vector, radius: number) => number; collide: (pair: Pair) => void; distance: (shapeA: Shape<any>, shapeB: Shape<any>) => undefined | {} }

Type declaration

  • AABB: typeof AABB
  • AABBTree: typeof AABBTree
  • AABBTreeNode: typeof AABBTreeNode
  • Body: typeof Body
  • BodyType: typeof BodyType
  • Broadphase: typeof Broadphase
  • Circle: typeof Circle
  • CircleVsCircle: (pair: Pair) => void
      • (pair: Pair): void
      • Parameters

        • pair: Pair

        Returns void

  • Colliders: {}
  • Common: typeof Common
  • Contact: typeof Contact
  • Convex: typeof Convex
  • ConvexVsCircle: (pair: Pair) => void
      • (pair: Pair): void
      • Parameters

        • pair: Pair

        Returns void

  • DistJoint: typeof DistJoint
  • Draw: typeof Draw
  • EPA: (points: SupportPoint[], shapeA: Shape<any>, shapeB: Shape<any>, output: SupportPoint[]) => void
      • (points: SupportPoint[], shapeA: Shape<any>, shapeB: Shape<any>, output: SupportPoint[]): void
      • Parameters

        • points: SupportPoint[]
        • shapeA: Shape<any>
        • shapeB: Shape<any>
        • output: SupportPoint[]

        Returns void

  • Edge: typeof Edge
  • EdgeVsCircle: (pair: Pair) => void
      • (pair: Pair): void
      • Parameters

        • pair: Pair

        Returns void

  • Engine: typeof Engine
  • Events: typeof Events
  • Factory: typeof Factory
  • FactoryBody: typeof FactoryBody
  • FactoryShape: typeof FactoryShape
  • Filter: typeof Filter
  • GJK: (shapeA: Shape<any>, shapeB: Shape<any>, useEpa: boolean, output: SupportPoint[]) => boolean
      • (shapeA: Shape<any>, shapeB: Shape<any>, useEpa: boolean, output: SupportPoint[]): boolean
      • Parameters

        • shapeA: Shape<any>
        • shapeB: Shape<any>
        • useEpa: boolean
        • output: SupportPoint[]

        Returns boolean

  • Grid: typeof Grid
  • GridBroadphase: typeof GridBroadphase
  • Intersection: typeof Intersection
  • Joint: typeof Joint
  • JointType: typeof JointType
  • Manager: typeof Manager
  • Midphase: typeof Midphase
  • Mouse: typeof Mouse
  • MouseJoint: typeof MouseJoint
  • Narrowphase: typeof Narrowphase
  • Pair: typeof Pair
  • Ray: typeof Ray
  • RaycastResult: typeof RaycastResult
  • Render: typeof Render
  • Runner: typeof Runner
  • RunnerType: typeof RunnerType
  • Settings: { collisionMotionSleepLimit: number; defaultDensity: number; defaultFriction: number; defaultRadius: number; defaultRestitution: number; depthDamping: number; maxEPAIterations: number; maxGJKIterations: number; motionSleepLimit: number; restitutionThreshold: number; sleepyTime: number; slop: number }
    • collisionMotionSleepLimit: number
    • defaultDensity: number
    • defaultFriction: number
    • defaultRadius: number
    • defaultRestitution: number
    • depthDamping: number
    • maxEPAIterations: number
    • maxGJKIterations: number
    • motionSleepLimit: number
    • restitutionThreshold: number
    • sleepyTime: number
    • slop: number
  • Shape: typeof Shape
  • ShapeType: typeof ShapeType
  • Sleeping: typeof Sleeping
  • SleepingState: typeof SleepingState
  • SleepingType: typeof SleepingType
  • Solver: typeof Solver
  • Timer: typeof Timer
  • Vector: typeof Vector
  • Vertex: typeof Vertex
  • Vertices: typeof Vertices
  • World: typeof World
  • circleTest: (from: Vector, delta: Vector, position: Vector, radius: number) => number
  • collide: (pair: Pair) => void
      • (pair: Pair): void
      • Parameters

        • pair: Pair

        Returns void

  • distance: (shapeA: Shape<any>, shapeB: Shape<any>) => undefined | {}
      • (shapeA: Shape<any>, shapeB: Shape<any>): undefined | {}
      • Parameters

        Returns undefined | {}

Variables

Const Settings

Settings: { collisionMotionSleepLimit: number; defaultDensity: number; defaultFriction: number; defaultRadius: number; defaultRestitution: number; depthDamping: number; maxEPAIterations: number; maxGJKIterations: number; motionSleepLimit: number; restitutionThreshold: number; sleepyTime: number; slop: number } = ...

Type declaration

  • collisionMotionSleepLimit: number
  • defaultDensity: number
  • defaultFriction: number
  • defaultRadius: number
  • defaultRestitution: number
  • depthDamping: number
  • maxEPAIterations: number
  • maxGJKIterations: number
  • motionSleepLimit: number
  • restitutionThreshold: number
  • sleepyTime: number
  • slop: number

Functions

Const circleTest

Generated using TypeDoc