Add boundary constraint behavior

This commit is contained in:
2022-03-30 19:14:24 +08:00
parent 17ee906f90
commit 8e413f0d1c
6 changed files with 120 additions and 24 deletions
+2 -2
View File
@@ -19,7 +19,7 @@ class Actuator extends Emitter<IActuatorEvent> {
/**
* 模拟帧率
*/
public fps: number = 24;
public fps: number = 36;
/**
* 仿真是否进行
@@ -56,7 +56,7 @@ class Actuator extends Emitter<IActuatorEvent> {
*/
private alignTimer: number = 0;
public tickerType: 1 | 2 = 1;
public tickerType: 1 | 2 = 2;
private ticker(t: number) {
if (this.startFlag && t !== 0) {