This commit is contained in:
aozhiwei 2023-01-01 16:19:50 +08:00
parent b2fd473db2
commit a56ec3d945

View File

@ -1925,16 +1925,9 @@ void Creature::SummonHero(Buff* buff,
for (int i = 0; i < 4; ++i) {
glm::vec3 born_dir = dir;
glm::vec3 born_offset(x, 0, y);
// 999
#if 0
born_offset.Rotate(born_dir.CalcAngle(a8::Vec2::UP));
born_offset.Rotate(i * 0.5);
#endif
// 999
#if 1
#else
born_pos = pos + born_offset;
#endif
GlmHelper::RotateY(born_offset, i * 0.5);
born_pos = GetPos();
born_pos.AddGlmVec3(born_offset);
can_create = TrySummonHero(hero_meta,
dir,
born_pos,