Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PhysicsRayResult

用于保存物理射线检测结果

Hierarchy

  • PhysicsRayResult

Index

Properties

Private _collidier

_collidier: ColliderComponent | null = null

Private _distance

_distance: number = 0

Private _hitPoint

_hitPoint: Vec3 = new Vec3()

Accessors

collider

  • 击中的碰撞盒

    Returns ColliderComponent

distance

  • get distance(): number
  • 距离

    Returns number

hitPoint

  • get hitPoint(): Vec3
  • 击中点

    Returns Vec3

Methods

assign

  • 设置射线,此方法由引擎内部使用,请勿在外部脚本调用

    Parameters

    Returns void

clone

  • 克隆

    Returns PhysicsRayResult

Generated using TypeDoc