Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Narrowphase

Helper class for the World. Generates ContactEquations.

todo

Sphere-ConvexPolyhedron contacts

todo

Contact reduction

todo

should move methods to prototype

Hierarchy

  • Narrowphase

Index

Constructors

constructor

Properties

contactPointPool

contactPointPool: ContactEquation[]

Internal storage of pooled contact points.

v3pool

v3pool: Vec3Pool

Pooled vectors.

Methods

createContactEquation

createFrictionFromAverage

  • createFrictionFromAverage(numContacts: number): void
  • Take the average N latest contact point on the plane.

    Parameters

    • numContacts: number

    Returns void

getContacts