CC: VS
模组属性评比

距离显示结果还剩3票~

路过的这位少侠,你觉得这款Mod怎么样,可否愿意来评一评它呢?登录并评比
更新日志
  • 暂无日志..

历史编辑记录更多
    管理组申请

      暂无管理组..

    编辑组申请

      暂无编辑组..

    开发组申请

      暂无开发组..

    活跃
    开源

    CC: VS

    0.0

    无人问津

    昨日指数: 76
    昨日平均指数: 80.445

    9277

    总浏览

    --

    资料填充率


    如何下载?
    • CC: VS

      CC: VS 是一个简约的 ComputerCraft x VS2 附属模组

      它为船上的电脑添加了 2 个新的 API,其中之一专门用于命令电脑。

      ShipAPI

      实用的API,可以读取船只的许多信息与修改船只名称。可读取的信息包括坐标、角度、速度、船只标识符、船只名称等等。

      ShipAPI的相关部分实用Functions(避免有些玩家遇到github无法访问,搬运一下)


      getWorldspacePosition()

      这个Function可以获取ship在世界中的中心坐标,获得到的数据为包含x、y、z的坐标数值的table。


      getShipyardPosition()

      这个Function可以获取ship在世界的真实位置(神秘亚空间)坐标,获得到的数据为包含x、y、z的坐标数值的table。


      getScale()

      这个Function可以获得ship的规模大小。获得到的数据为包含x、y、z的长度数值的table。


      getQuaternion()

      这个Function可以获得ship运动时的四元数,获得的数据依旧是个table。


      getRoll()

      这个Function可以获得ship的翻转角度,获得数据为number。


      getPitch()

      这个Function可以获得ship的俯仰角度,获得数据为number。


      getYaw()

      这个Function可以获得ship的偏航角度,获得数据为number。


      getVelocity()

      这个Function可以获得ship的速度,获得数据为table。


      getMass()

      这个Function可以获得ship的质量,获得数据为number。


      getId()

      这个Function可以获得ship的ID,获得数据为number。


      isStatic()

      这个Function可以判断ship是否为静态,动态输出为“No”,静态输出为“Yes”。


      getName()

      这个Function可以获得ship的名字,获得数据为string。


      setName(name)

      这个Function可以设置ship的名字。


      ExtendedShipAPI

      命令电脑专用API。可以对船只施加力、设置重量。

      ExtendedShipAPI的相关部分实用Functions


      applyInvariantForce(xForce,yForce,zForce)

      这个Function将给予ship一个力。


      applyInvariantForceAtPos(xForce,yForce,zForce,xPos,yPos,zPos)

      这个Function将给特定位置的ship一个力。


      applyInvariantTorque(xTorque,yTorque,zTorque)

      这个Function将不变扭矩给予给ship。


      applyRotDependentForce(xForce, yForce, zForce)

      这个Function将旋转相关力给予给ship。


      applyRotDependentForceAtPos(xForce, yForce, zForce, xPos, yPos, zPos)

      这个FUnction将给特定位置的ship施加旋转相关力。


      applyRotDependentTorque(xTorque, yTorque, zTorque)

      这个Function将对ship施加与旋转相关的扭矩。


      setStatic(true & false)

      这个Function将强制ship为静态。


      setScale(number)

      这个Function强制改变ship的规格大小。


      teleport(table)

      这个Function将把ship传送到table表示的三维坐标(需要在配置文件中开启!)。


    短评加载中..