{"blog_url":"https://baba-s.hatenablog.com/","url":"https://baba-s.hatenablog.com/entry/2023/05/17/160729","author_name":"baba_s","image_url":null,"height":"190","type":"rich","categories":["Unity"],"blog_title":"\u30b3\u30ac\u30cd\u30d6\u30ed\u30b0","title":"\u3010Unity\u3011Rigidbody2D \u3067\u901f\u5ea6\u3092\u4e00\u5b9a\u306b\u4fdd\u3064\u65b9\u6cd5","provider_name":"Hatena Blog","version":"1.0","provider_url":"https://hatena.blog","description":"\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9 public float desiredSpeed = 5f; // \u4e00\u5b9a\u306b\u4fdd\u3061\u305f\u3044\u901f\u5ea6 private Rigidbody2D rb; private void Start() { rb = GetComponent<Rigidbody2D>(); } private void FixedUpdate() { Vector2 velocity = rb.velocity; float currentSpeed = velocity.magnitude; if (currentSpeed != desiredSpeed) { // \u901f\u5ea6\u3092\u4e00\u5b9a\u306b\u8abf\u6574\u3059\u308b velocity = ve\u2026","author_url":"https://blog.hatena.ne.jp/baba_s/","width":"100%","published":"2023-05-17 16:07:29","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbaba-s.hatenablog.com%2Fentry%2F2023%2F05%2F17%2F160729\" title=\"\u3010Unity\u3011Rigidbody2D \u3067\u901f\u5ea6\u3092\u4e00\u5b9a\u306b\u4fdd\u3064\u65b9\u6cd5 - \u30b3\u30ac\u30cd\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>"}