Skip to content

HingeJoint (JavaScript) ​

HingeJoint ​

Scripting Name:Insight.HingeJoint

单轴铰链。

  • _在 Web _SDK__中无效

*注意:洞见__SDK_ v2.1 版本中去掉了物理引擎的支持,因此在洞见 SDK v2.1 无法使用这些接口。_

Properties ​


limits ​

type : Insight.JointLimits

限位器。

motor ​

type :Insight.JointMotor

旋转马达。

useLimits ​

type : boolean

是否可以使用限位器。

useMotor ​

type : boolean

是否可以使用旋转马达。

Methods ​


toString ​

javascript
public string toString();

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

Inherited Properties(继承自 Component) ​


enabled ​

type : boolean

该组件是否是可用的。

gameObject ​

type :Insight.GameObject

(只读)该组件所依附的 GameObject。

isActiveAndEnabled ​

type : boolean

(只读)该组件是否可用,且其依附的 GameObject 是否是活跃状态。

name ​

type : string

(只读)所依附的 GameObject 的名称。

tag ​

type : string

(只读)所依附的 GameObject 的 Tag。

⚠️ 暂时未启用

transform ​

type :Insight.Transform

(只读)所依附的 GameObject 的 transform。