This commit is contained in:
aozhiwei 2019-09-09 19:10:34 +08:00
parent ffa7f0982a
commit e83a1d2a4e

View File

@ -34,5 +34,12 @@ void Skin::ToPB(cs::MFSkin* pb_obj)
a8::Vec2 BornPoint::RandPoint() const
{
a8::Vec2 born_point = pos;
return born_point;
a8::Vec2 dir = born_point;
dir.Normalize();
dir.Rotate(a8::RandAngle());
if (rad < 2) {
return born_point;
} else {
return born_point + dir * (rand() % (int)rad);
}
}