Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
マップで何かのオブジェクトが自分の後ろまたは前にあるかどうかを検出したいと考えています。もちろん、自分の位置を取得できます。オブジェクトの位置と進行方向 (方位) もわかります。自分の前にいるか後ろにいるかを確認する方法を知りたいです。
ありがとう
距離トリックを使用しました。私と障害物との距離が遠くなると、間違いなく私の後ろになります。減少して、それは私の前にあります。