调节台球旋转

This commit is contained in:
ruanwujing 2024-04-11 17:42:58 +08:00
parent 7ae9363d9a
commit aa7a9f34be

View File

@ -8,7 +8,7 @@ export class TestBilliardsParent extends Component {
for (let i = 0; i < this.node.children.length; i++) {
let ball:TestBilliards = this.node.children[i].getComponent(TestBilliards);
ball.scrollSpeed = (i + 1);
ball.scrollSpeed = i % 4 + 1;
let ax = i % 4;
let ay = Math.floor(i / 4);