-
-
Notifications
You must be signed in to change notification settings - Fork 22
解决穿模问题 #582
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or requestinnovativeInnovative idea or algorithmInnovative idea or algorithm
Description
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestinnovativeInnovative idea or algorithmInnovative idea or algorithm
Type
Fields
Give feedbackNo fields configured for issues without a type.
Is your feature request related to a problem? Please describe.
当人物在翻窗时,为了避免可能的问题,现在允许穿模,但这可能导致更多的问题。
Describe the solution you'd like
可以用以下方法避免穿模:
当人物翻窗或出现可能穿模的情况时,将出现穿模的人物顺移:直接将该人物顺移到一个安全的地方,即短时间内不可能与任何人重叠的地方。
可以参考的做法如下:将地图分成若干格,当人物 A 将与人物 B 重叠时,暴力搜索到一个任何人物短时间内达不到、且离重叠人物 B 最近的格子,将 A 顺移到该格子处。