Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • YPhysics

Index

Constructors

constructor

Methods

Static overlapBlock

  • This instruction will check for colliders in a block of a given dimensions at a given position with a given rotation.

    Parameters

    Returns YEntity[]

Static overlapBlockNonAlloc

  • This instruction will check for colliders in a block of a given dimensions at a given position with a given rotation.

    Parameters

    Returns number

Static overlapCapsule

  • This instruction will check for colliders in a capsule of a given dimensions at a given position with a given rotation.

    Parameters

    Returns YEntity[]

Static overlapCapsuleNonAlloc

  • overlapCapsuleNonAlloc(center: YVector3, height: number, radius: number, rotation: YVector3, results: YEntity[]): number
  • This instruction will check for colliders in a capsule of a given dimensions at a given position with a given rotation.

    Parameters

    Returns number

Static overlapSphere

  • This instruction will check for colliders in a sphere of a given radius at a given position.

    Parameters

    Returns YEntity[]

Static overlapSphereNonAlloc

  • overlapSphereNonAlloc(center: YVector3, radius: number, results: YEntity[]): number
  • This instruction will check for colliders in a sphere of a given radius at a given position.

    Parameters

    Returns number

Static raycast

Static raycastTerrain

  • raycastTerrain(origin: YVector3, direction: YVector3, maxDistance: number, onGroundHit: (hitPosition: YVector3, hitNormal: YVector3) => void, onMissed: () => void): void
  • Casts a ray, from origin point, in a direction, of a maximal length, against the terrain colliders of the scene.

    Parameters

    Returns void

Generated using TypeDoc