Verlet 集成物理引擎:verlet-js

jopen 11年前發布 | 21K 次閱讀 游戲開發 JavaScript

verlet-js 是一個簡單的 Verlet 集成物理引擎,由 Sub Protocol 使用 JavaScript 編寫。Verlet 的發音是 'ver-ley'。

  • Simulation: Root object that holds composite entities and drives all physics and animation within a scene.
  • Composites: A high level object used within the scene (ball, bridge, cloth, etc..)
  • Particles: Just a point in space that responds to gravity.
  • Constraints: Links particles together so they can interact with each other.
    1. Pin: Binds a particle to a static/fixes position in space.
    2. Distance: Binds two particles together by a fixed linear distance.
    3. Angle: Binds 3 particles to each other by an acute angle.

 Verlet 集成物理引擎:verlet-js

項目主頁:http://www.baiduhome.net/lib/view/home/1366530226593

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!