1
This commit is contained in:
parent
ffa7f0982a
commit
e83a1d2a4e
@ -34,5 +34,12 @@ void Skin::ToPB(cs::MFSkin* pb_obj)
|
||||
a8::Vec2 BornPoint::RandPoint() const
|
||||
{
|
||||
a8::Vec2 born_point = pos;
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user