ht.Raycaster(g3d)

new Raycaster(g3d)

射线检测器

Parameters:
Name Type Description
g3d ht.graph3d.Graph3dView

Methods

getBackfaceCulling() → {boolean}

当前 raycaster 判定碰撞时是否背面裁切

Returns:
boolean
Since:
  • 7.7.0

getTriangleTestEpsilon() → {number}

三角检测计算时的浮点精度误差,默认 1e-9

Returns:
number
Since:
  • 7.7.0

setBackfaceCulling(v) → {void}

设置当前 raycaster 是否背面裁切

Parameters:
Name Type Description
v boolean
Returns:
void
Since:
  • 7.7.0

setTriangleTestEpsilon(newEpsilon) → {void}

设置三角检测的精度误差

Parameters:
Name Type Description
newEpsilon number
Returns:
void
Since:
  • 7.7.0