Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • YPhysics

Index

Constructors

constructor

Methods

Static overlapBlock

Static overlapBlockNonAlloc

Static overlapCapsule

Static overlapCapsuleNonAlloc

  • overlapCapsuleNonAlloc(center: YVector3, height: number, radius: number, rotation: YVector3, results: any[]): void
  • Parameters

    • center: YVector3
    • height: number
    • radius: number
    • rotation: YVector3
    • results: any[]

    Returns void

Static overlapSphere

Static overlapSphereNonAlloc

  • overlapSphereNonAlloc(center: YVector3, radius: number, results: YEntity[]): void
  • Parameters

    Returns void

Static raycast

  • raycast(origin: YVector3, direction: YVector3, maxDistance: number, onEntityHit: (entity: YEntity, hitPosition: YVector3, hitNormal: void) => void, onGroundHit: (hitPosition: YVector3, hitNormal: void) => void, onMissed: () => void): void
  • Parameters

    • origin: YVector3
    • direction: YVector3
    • maxDistance: number
    • onEntityHit: (entity: YEntity, hitPosition: YVector3, hitNormal: void) => void
    • onGroundHit: (hitPosition: YVector3, hitNormal: void) => void
        • (hitPosition: YVector3, hitNormal: void): void
        • Parameters

          Returns void

    • onMissed: () => void
        • (): void
        • Returns void

    Returns void

Static raycastTerrain

  • raycastTerrain(origin: YVector3, direction: YVector3, maxDistance: number, onGroundHit: (hitPosition: YVector3, hitNormal: void) => void, onMissed: () => void): void
  • Parameters

    • origin: YVector3
    • direction: YVector3
    • maxDistance: number
    • onGroundHit: (hitPosition: YVector3, hitNormal: void) => void
        • (hitPosition: YVector3, hitNormal: void): void
        • Parameters

          Returns void

    • onMissed: () => void
        • (): void
        • Returns void

    Returns void

Generated using TypeDoc