<?xml version="1.0" encoding="UTF-8" ?><rdf:RDF 
  xmlns="http://purl.org/rss/1.0/"
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:atom="http://www.w3.org/2005/Atom"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xml:lang="ja">
  <channel rdf:about="http://w.atwiki.jp/hael/">
    <title>hael @ ウィキ</title>
    <link>http://w.atwiki.jp/hael/</link>
    <atom:link href="https://w.atwiki.jp/hael/rss10.xml" rel="self" type="application/rss+xml" />
    <atom:link rel="hub" href="https://pubsubhubbub.appspot.com" />
    <description>hael @ ウィキ</description>

    <dc:language>ja</dc:language>
    <dc:date>2010-07-26T23:13:42+09:00</dc:date>
    <utime>1280153622</utime>

    <items>
      <rdf:Seq>
                <rdf:li rdf:resource="https://w.atwiki.jp/hael/pages/26.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/hael/pages/1.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/hael/pages/25.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/hael/pages/24.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/hael/pages/23.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/hael/pages/21.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/hael/pages/16.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/hael/pages/22.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/hael/pages/20.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/hael/pages/17.html" />
              </rdf:Seq>
    </items>
	
		
    
  </channel>
    <item rdf:about="https://w.atwiki.jp/hael/pages/26.html">
    <title>physics</title>
    <link>https://w.atwiki.jp/hael/pages/26.html</link>
    <description>
      * 用語あれこれ

** 質量
- 重さ
- 線形運動（回転を含まない運動）に対する抵抗の度合い

** 重心
- 質量の中心
- どんな力を作用させてもその物体が回転しない点

** 1次のモーメント
- 原点から重心までの座標軸に沿った距離と質量の積

** 慣性モーメント
- ある回転軸に関する物体の質量の分布
- 回転運動に対する抵抗の度合い
- 2階のテンソル
- よくわからん

** テンソル
- 大きさが方向によって異なる（異方性）ような属性を表す表現
- ベクトルを要素とするベクトル
- よくわからん


&gt;/* 物体を構成する質点 */
&gt;PointMass p[N] = { ... };
&gt;
&gt;/* 質量 */
&gt;float totalMass = 0.f;
&gt;for( int i = 0; i &lt; N; i++ )
&gt;{
&gt;	totalMass += p.Mass;
&gt;}
&gt;
&gt;/* 1次のモーメント */
&gt;Vector3 moment1( 0.f, 0.f, 0.f );
&gt;for( int i = 0; i &lt; N; i++ )
&gt;{
&gt;	moment1 += p.Position * p.Mass;
&gt;}
&gt;
&gt;/* 重心 */
&gt;Vector3 center = moment1 / totalMass;    </description>
    <dc:date>2010-07-26T23:13:42+09:00</dc:date>
    <utime>1280153622</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/hael/pages/1.html">
    <title>トップページ</title>
    <link>https://w.atwiki.jp/hael/pages/1.html</link>
    <description>
      #search()
#contents()

* 物理エンジンを作ろう
** Box2DFlashAS3を読む
- [[gihyo.jpから読む&gt;&gt;gihyo]]

* 音を鳴らしてみよう
** OpenALで鳴らしてみる
- [[OpenAL&gt;&gt;openAL]]

* 物理っぽい何か
- [[アレ&gt;&gt;physics]]    </description>
    <dc:date>2010-07-26T22:31:48+09:00</dc:date>
    <utime>1280151108</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/hael/pages/25.html">
    <title>openAL</title>
    <link>https://w.atwiki.jp/hael/pages/25.html</link>
    <description>
      #search()
#contents()

* ドキュメント
** 公式マニュアル
http://connect.creativelabs.com/openal/Documentation/Forms/AllItems.aspx
** チュートリアル
http://www.devmaster.net/articles.php?catID=6
** 日本語資料
- [[ドキュメント&gt;http://www.memorize-being.net/releases/openal11-spec-and-reference.html]]


* 概観
** 基本的な構造（マニュアルP8)
- デバイス
デバイス = コンテクスト（複数） + バッファ（複数）
コンテクスト = リスナ（単数） + ソース（複数）
- バッファ
デバイスごとに管理され、複数のソースで共有される

** 再生までの大まかな流れ（マニュアルP10）
+ デバイス作成
+ コンテクスト作成
+ バッファ作成
+ 音声ファイル読み込み
+ 音声ファイルをバッファへバインド
+ 音声ファイルを閉じる
+ ソース作成
+ バッファからソースへ読み込み
+ 再生

** OpenGL/DirectXとの親和性
- ソースコードの雰囲気がOpenGLにかなり近い
-- というか、それを意識してつくられてる
- 座標系を含めて、OpenGLと透過的に扱って問題なさげ（マニュアルP13）
- ってことは、z軸さえ気をつければDirectXとも親和性は高い？
-- VistaからDirectSoundが使えないらしいし、むしろこっちに移行したほうがいいかも
- 単位系は秒とHz
-- 距離単位は特に決まってない
--- 距離によるゲインの減衰は自由に設定できる
-- AL_SPEED_OF_SOUNDのデフォルト値が343.3だから、とりあえずメートル単位が無難？

** ステートマシン
- コマンド群は、OpenGL的なステート操作にかなり近い
-- 実装はオブジェクト指向らしいけど、まぁ普通のステートマシン操作と考えて問題なさげ
-- 「オブジェクト」に対しては、それぞれのNameを通じてアクセスできる    </description>
    <dc:date>2009-01-03T16:22:29+09:00</dc:date>
    <utime>1230967349</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/hael/pages/24.html">
    <title>b2TestUpdate</title>
    <link>https://w.atwiki.jp/hael/pages/24.html</link>
    <description>
      &amp;topicpath()
#contents()

* 関数名
Test#update()

* 概要


* 引数


* 実装


* Call
#comment


* Called
#comment    </description>
    <dc:date>2008-12-06T03:47:54+09:00</dc:date>
    <utime>1228502874</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/hael/pages/23.html">
    <title>b2Test</title>
    <link>https://w.atwiki.jp/hael/pages/23.html</link>
    <description>
      &amp;topicpath()
#contents()


* クラス名
Test

* 親クラス


* 概要


* メンバ関数
|関数名|型|引数|
|Test()|||
||||
||||
||||
||||

* イベントリスナ
|関数名|イベント|
|[[update()&gt;&gt;b2TestUpdate]]|Event.ENTER_FRAME|
|||
|||

* メンバ変数
- static public
|変数名|型|
|m_world|b2World|
|m_bomb|b2Body|
|m_mouseJoint|b2MouseJoint|
|m_iterations|int = 10|
|m_timeStep|Number = 1/30|
|m_physScale|Number = 30|

- public
|変数名|型|
|mouseXWorldPhys|Number|
|mouseYWorldPhys|Number|
|mouseXWorld|Number|
|mouseYWorld|Number|
|m_sprite|Sprite|

- private
|変数名|型|
|||
|||
|||
|||




#comment    </description>
    <dc:date>2008-12-06T03:47:13+09:00</dc:date>
    <utime>1228502833</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/hael/pages/21.html">
    <title>b2Testragdoll()</title>
    <link>https://w.atwiki.jp/hael/pages/21.html</link>
    <description>
      &amp;topicpath()
#contents()

* クラス
[[TestRagdoll&gt;&gt;b2TestRagdoll]]

* 親クラス
[[Test&gt;&gt;b2Test]]

* 概要


* 引数


* 実装


* Call
#comment


* Called
- [[Main#Main&gt;&gt;b2MainMain]]  -- 名無しさん  (2008-12-06 03:37:43)
#comment    </description>
    <dc:date>2008-12-06T03:41:47+09:00</dc:date>
    <utime>1228502507</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/hael/pages/16.html">
    <title>クラスの雛形</title>
    <link>https://w.atwiki.jp/hael/pages/16.html</link>
    <description>
      &amp;topicpath()
#contents()


* クラス名


* 親クラス


* 概要


* メンバ関数
|関数名|型|引数|
||||
||||
||||
||||
||||

* イベントリスナ
|関数名|イベント|
|||
|||
|||

* メンバ変数
- static public
|変数名|型|
|||
|||
|||


- public
|変数名|型|
|||
|||
|||
|||
|||


- private
|変数名|型|
|||
|||
|||
|||
|||




#comment    </description>
    <dc:date>2008-12-06T03:40:55+09:00</dc:date>
    <utime>1228502455</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/hael/pages/22.html">
    <title>b2TestRagdoll</title>
    <link>https://w.atwiki.jp/hael/pages/22.html</link>
    <description>
      &amp;topicpath()
#contents()


* クラス名
TestRagdoll

* 親クラス
[[Test&gt;&gt;b2Test]]

* 概要


* メンバ関数
|関数名|型|引数|


* イベントリスナ
|関数名|イベント|


* メンバ変数
- static public
|変数名|型|


- public
|変数名|型|


- private
|変数名|型|




#comment    </description>
    <dc:date>2008-12-06T03:39:25+09:00</dc:date>
    <utime>1228502365</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/hael/pages/20.html">
    <title>b2MainUpdate</title>
    <link>https://w.atwiki.jp/hael/pages/20.html</link>
    <description>
      &amp;topicpath()
#contents()

* 関数名


* 概要


* 引数


* 実装


* Call
- [[TestRagdoll()&gt;&gt;b2Testragdoll()]]  -- 名無しさん  (2008-12-06 03:35:03)
- [[TestCompound()&gt;&gt;b2TestCompound]]  -- 名無しさん  (2008-12-06 03:35:27)
- [[TestCrankGearsPulley()&gt;&gt;b2TestCrankGearsPulley]]  -- 名無しさん  (2008-12-06 03:35:42)
- [[TestBridge()&gt;&gt;b2TestBridge]]  -- 名無しさん  (2008-12-06 03:35:52)
- [[TestStack()&gt;&gt;b2TestStack]]  -- 名無しさん  (2008-12-06 03:36:05)
- [[TestCCD()&gt;&gt;b2TestCCD]]  -- 名無しさん  (2008-12-06 03:36:20)
- [[TestTheoJansen()&gt;&gt;b2TestTheoJansen]]  -- 名無しさん  (2008-12-06 03:36:33)
#comment


* Called
- [[Main#Main()&gt;&gt;b2MainMain]]  -- 名無しさん  (2008-12-06 03:32:45)
#comment    </description>
    <dc:date>2008-12-06T03:37:08+09:00</dc:date>
    <utime>1228502228</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/hael/pages/17.html">
    <title>関数の雛形</title>
    <link>https://w.atwiki.jp/hael/pages/17.html</link>
    <description>
      &amp;topicpath()
#contents()

* 関数名


* 概要


* 引数


* 実装


* Call
#comment


* Called
#comment    </description>
    <dc:date>2008-12-06T03:32:25+09:00</dc:date>
    <utime>1228501945</utime>
  </item>
  </rdf:RDF>
