当前位置:网站首页>【Cocos Creator 3.5.1】this. node. Use of getposition (this.\u curpos)
【Cocos Creator 3.5.1】this. node. Use of getposition (this.\u curpos)
2022-06-27 05:44:00 【CN-Dust】
Usage mode :
this.node.getPosition(this._curPos);
describe :
(method) Node.getPosition(out?: Vec3): Vec3
@en — Get position in local coordinate system, please try to pass out vector and reuse it to avoid garbage.
@zh — Get local coordinates , Be careful , As far as possible, it is possible to transfer the reused [[Vec3]] To avoid garbage .
@param out — Set the result to out vector
@return — If out given, the return value equals to out, otherwise a new vector will be generated and return
边栏推荐
- Implementation of easyexcel's function of merging cells with the same content and dynamic title
- 使用域名转发mqtt协议,避坑指南
- Cognition - how to fill in 2022 college entrance examination volunteers
- Edge loads web pages in IE mode - edge sets ie compatibility
- WebRTC系列-网络传输之7-ICE补充之提名(nomination)与ICE_Model
- Niuke practice 101-c reasoning clown - bit operation + thinking
- What is BFC? What's the usage?
- Netease cloud music params and encseckey parameter generation code
- three.js第一人称 相机前枪的跟随
- C语言实现定时器
猜你喜欢
随机推荐
STM32 reads IO high and low level status
QT using Valgrind to analyze memory leaks
Comprehensive application of OpenCV in contour detection and threshold processing
Open the door small example to learn ten use case diagrams
Codeforces Round #802 (Div. 2)
【FPGA】 基于FPGA分频,倍频设计实现
思维的技术:如何破解工作生活中的两难冲突?
Avoid asteroids
ES6 0622 III
Penetration test - file upload / download / include
《数据库原理与应用》第一版 马春梅……编著 期末复习笔记
STM32关闭PWM输出时,让IO输出固定高或低电平的方法。
The most detailed download tutorial of MySQL
STM32 MCU pin_ How to configure the pin of single chip microcomputer as pull-up input
Py2neo basic syntax
LeetCode-515. 在每个树行中找最大值
双位置继电器JDP-1440/DC110V
Nlp-d62-nlp competition d31 & question brushing D15
Tri rapide (non récursif) et tri de fusion
C语言实现定时器