Skip to content

Ray (JavaScript)

Ray

Scripting Name:Insight.Ray

射线类。

Properties


direction

type :Insight.Vector3

射线方向向量在世界坐标系下的表示。

origin

type :Insight.Vector3

射线的起点的世界坐标值。

Methods


toString

javascript
toString(): string;

将 ray 内容以一定格式转为 string 类型。

getPoint

javascript
getPoint(number distance): Insight.Vector3;

返回射线终点所达到的点的世界坐标。