<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>NU_Pan</author_name>
  <author_url>https://blog.hatena.ne.jp/NU_Pan/</author_url>
  <blog_title>ぬうぱんの備忘録</blog_title>
  <blog_url>https://nu-pan.hatenablog.com/</blog_url>
  <categories>
    <anon>C++</anon>
    <anon>Tips</anon>
    <anon>ゲーム開発</anon>
    <anon>Box2D</anon>
  </categories>
  <description>この記事は Box2Dで物体に力とかを加えようと思った時に取ることが出来る方法のまとめです。自分は古典物理すら全くわからないマンなので必要な範囲で関連する知識とかもまとめます。 SetLinearVelocity() ボディの速度(velocity, [])を直接指定する方法。 加速度を加えるためには以下の手順を踏む。 ボディの現在の速度ベクトルを得る(GetLinearVelocity()) 速度ベクトルを合成(ベクトル同士の加算) 合成した速度ベクトルをボディに設定(SetLinearVelocity()) C++コードで書くと以下の要領 b2Body* pMyBody; b2Vec2 A…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnu-pan.hatenablog.com%2Fentry%2F20140811%2F1407709387&quot; title=&quot;Box2Dでb2Bodyに力とかを加えるいくつかの方法 - ぬうぱんの備忘録&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2014-08-11 07:23:07</published>
  <title>Box2Dでb2Bodyに力とかを加えるいくつかの方法</title>
  <type>rich</type>
  <url>https://nu-pan.hatenablog.com/entry/20140811/1407709387</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
