当前位置:网站首页>【Cocos Creator 3.5.1】坐标的加法

【Cocos Creator 3.5.1】坐标的加法

2022-06-27 05:35:00 CN-Dust

使用方法

Vec3.add(this._targetPos, this._curPos, new Vec3(this._jumpStep, 0, 0));

描述

(method) math.Vec3.add<Vec3>(out: Vec3, a: math.IVec3Like, b: math.IVec3Like): Vec3
@en — Element-wise vector addition and save the results to out vector object

@zh — 逐元素向量加法

传入三个Vec3类型变量,其中第一个为输出的Vec3。

原网站

版权声明
本文为[CN-Dust]所创,转载请带上原文链接,感谢
https://blog.csdn.net/qq_36286039/article/details/125395484