fix: 移除施法起始位置的Y轴偏移
施法起始位置的Y轴偏移30是多余的,直接使用施法者位置即可
This commit is contained in:
@@ -253,7 +253,6 @@ export class SACastSystem extends ecs.ComblockSystem implements ecs.ISystemUpdat
|
||||
|
||||
// 获取施法者位置作为起始位置
|
||||
const startPos = caster.node.position.clone();
|
||||
startPos.y += 30;
|
||||
|
||||
const targetPos = targets[0]; // 使用第一个目标位置
|
||||
// console.log(`[SACastSystem]: ${s_uuid}, 起始位置: ${startPos}, 目标位置: ${targetPos}`);
|
||||
|
||||
Reference in New Issue
Block a user