当前位置:网站首页>[cocos creator 3.5.1] addition of coordinates

[cocos creator 3.5.1] addition of coordinates

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

Usage method

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

describe

(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 —  Element by element vector addition 

Pass in three Vec3 Type variable , The first one is the output Vec3.

原网站

版权声明
本文为[CN-Dust]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/178/202206270534251622.html