We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
3.8.4
MacBookPro M1
import { _decorator, Component, Node, v3, Vec3 } from 'cc'; const { ccclass, property } = _decorator; const from = v3(-10); const to = v3(-9, 0); @ccclass('test') export class test extends Component { start() { this.node.setPosition(from); } update(deltaTime) { this.node.setPosition( Vec3.lerp(v3(), this.node.position, to, deltaTime) ); } }
场景内添加一个 cube, 绑定上述脚本, 运行模拟器, lerp 平滑
但是 from 改成 v3(-10000), to 改成 v3(-9999) 后, lerp 出来很卡
No response
from 改成 v3(-10000), to 改成 v3(-9999) 后, 再次运行, cube 移动卡顿
The text was updated successfully, but these errors were encountered:
只在模拟器会出现吗?
Sorry, something went wrong.
android 也会
No branches or pull requests
Cocos Creator version
3.8.4
System information
MacBookPro M1
Issue description
场景内添加一个 cube, 绑定上述脚本, 运行模拟器, lerp 平滑
但是 from 改成 v3(-10000), to 改成 v3(-9999) 后, lerp 出来很卡
Relevant error log output
No response
Steps to reproduce
场景内添加一个 cube, 绑定上述脚本, 运行模拟器, lerp 平滑
from 改成 v3(-10000), to 改成 v3(-9999) 后, 再次运行, cube 移动卡顿
Minimal reproduction project
No response
The text was updated successfully, but these errors were encountered: