<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>syun77</author_name>
  <author_url>https://blog.hatena.ne.jp/syun77/</author_url>
  <blog_title>2dgames.jp</blog_title>
  <blog_url>https://2dgames.jp/</blog_url>
  <categories>
    <anon>Godot</anon>
  </categories>
  <description>Polygon2Dを分割するサンプルを作りました Polygon2Dを分割するサンプル 今回はソースコードとサンプルプロジェクトのみです。まだ不十分なところも多いので、今後修正される可能性があります 分割する対象を最初に存在するオブジェクト($obj)のみとしています（切れなかったときの判定が未実装） 分割後にオブジェクトの Rigidbody2D の移動値が初期化されています サンプルコード extends Node2D # マウス開始座標 var start_pos = Vector2() # カットするオブジェクト(Rigit2D) onready var obj = $obj func…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2F2dgames.jp%2Fentry%2Fcutting-polygon2d%2F&quot; title=&quot;【Godot】Polygon2Dを分割するサンプル - 2dgames.jp&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/s/syun77/20250817/20250817214456.gif</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-08-05 00:43:31</published>
  <title>【Godot】Polygon2Dを分割するサンプル</title>
  <type>rich</type>
  <url>https://2dgames.jp/entry/cutting-polygon2d/</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
