Skip to content

JointMotor (JavaScript)

JointMotor

Scripting Name:Insight.JointMotor

铰链马达。

  • _在 Web _SDK__中无效

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

Properties


force

type : number

最大输出力。

freeSpin

type : boolean

如果转速超过最大转速,是否制动。

targetVelocity

type : number

最大转速。

Methods


toString

javascript
public string toString();

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