Joint ! 是用来链接body和body直接的对象!

总共有8种joint,分别使用在不同的目的的链接中!

Mouse joint

Distance joint
Revolute joint 
Prismatic joint
Pulley joint 
Gear joint 
Line joint 
Weld joint
我们有关于的所有事例都是基于
  function init(){

    var canvas = document.getElementById("stage");
    canvas.addEventListener("mousedown",mouseDown,true);
    canvas.addEventListener("mouseup",mouseUp,true);
    context = canvas.getContext("2d");
    createWorld();
    createWall();
    createDistance();
//    createRevolute(); 
//    createPrismatic();
//    createPulley(); 
//    createGear(); 
//    createLine(); 
//    createWeld();
};

相关文章:

  • 2022-12-23
  • 2021-07-10
  • 2021-10-29
  • 2021-04-05
  • 2021-06-16
  • 2021-04-21
  • 2021-05-26
  • 2021-05-03
猜你喜欢
  • 2022-02-18
  • 2021-05-31
  • 2022-12-23
  • 2022-12-23
  • 2021-12-19
  • 2022-02-08
相关资源
相似解决方案