{"height":"190","url":"https://edunity.hatenablog.com/entry/20250616/1750066445","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fedunity.hatenablog.com%2Fentry%2F20250616%2F1750066445\" title=\"\u3010UnityC#\u30113\u6b21\u5143\u7a7a\u9593\u3067\u76f4\u7ddaAB\u3068\u70b9P\u306e\u8ddd\u96e2\u3092\u6c42\u3081\u308b\u65b9\u6cd5 - \u300c\u6bce\u65e5Unity\u300d\u306e\u6280\u8853\u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","width":"100%","categories":["UnityC#"],"title":"\u3010UnityC#\u30113\u6b21\u5143\u7a7a\u9593\u3067\u76f4\u7ddaAB\u3068\u70b9P\u306e\u8ddd\u96e2\u3092\u6c42\u3081\u308b\u65b9\u6cd5","image_url":null,"blog_title":"\u300c\u6bce\u65e5Unity\u300d\u306e\u6280\u8853\u30d6\u30ed\u30b0","provider_url":"https://hatena.blog","published":"2025-06-16 18:34:05","author_url":"https://blog.hatena.ne.jp/EDunity/","description":"3\u6b21\u5143\u7a7a\u9593\u3067\u76f4\u7ddaAB\u3068\u70b9P\u306e\u8ddd\u96e2\u3092\u6c42\u3081\u308b\u65b9\u6cd5\u3092\u30e1\u30e2\u3002 [ \u65b9\u6cd5 ] [ \u95a2\u9023\u8a18\u4e8b ] [ \u65b9\u6cd5 ] using System.Collections; using System.Collections.Generic; using UnityEngine; public class script : MonoBehaviour { // \u70b9P\u304b\u3089\u6700\u3082\u8fd1\u3044\u76f4\u7ddaAB\u4e0a\u306b\u5b58\u5728\u3059\u308b\u70b9\u3092\u6c42\u3081\u308b\u95a2\u6570 private Vector3 ClosestPointOnStraightLine(Vector3 a, Vector3 b, Vector3 p) { Vector3 vecAB = b - a; Vec\u2026","provider_name":"Hatena Blog","blog_url":"https://edunity.hatenablog.com/","author_name":"EDunity","version":"1.0"}