fix: 统一技能准备时间并调整贝塞尔曲线默认参数
将技能配置中所有ready值从0.1改为0.2,使技能准备时间保持一致 修改SMoveComp中贝塞尔曲线默认高度参数,并更新Skill.ts中的参数覆盖逻辑
This commit is contained in:
@@ -65,8 +65,8 @@ export class SMoveDataComp extends ecs.Comp {
|
||||
|
||||
/** 贝塞尔曲线控制点 */
|
||||
controlPoint: Vec3 = v3(0, 0, 0);
|
||||
bezierStartHeight: number = 25;
|
||||
bezierMidHeight: number = 140;
|
||||
bezierStartHeight: number = 30;
|
||||
bezierMidHeight: number = 200;
|
||||
bezierArc: number = 1;
|
||||
|
||||
/** 是否自动销毁(到达目标后) */
|
||||
@@ -77,8 +77,8 @@ export class SMoveDataComp extends ecs.Comp {
|
||||
this.targetPos.set(0, 0, 0);
|
||||
this.currentPos.set(0, 0, 0);
|
||||
this.controlPoint.set(0, 0, 0);
|
||||
this.bezierStartHeight = 18;
|
||||
this.bezierMidHeight = 140;
|
||||
this.bezierStartHeight = 30;
|
||||
this.bezierMidHeight = 200;
|
||||
this.bezierArc = 1;
|
||||
this.speed = 500;
|
||||
this.progress = 0;
|
||||
|
||||
Reference in New Issue
Block a user