Herramientas de usuario

Herramientas del sitio


wiki2:chipmunk

Diferencias

Muestra las diferencias entre dos versiones de la página.

Enlace a la vista de comparación

Ambos lados, revisión anterior Revisión previa
Próxima revisión
Revisión previa
wiki2:chipmunk [2014/12/12 15:35]
alfred [Code]
wiki2:chipmunk [2020/05/09 09:25] (actual)
Línea 21: Línea 21:
  
 ==== Code ==== ==== Code ====
 +=== C++ ===
 +
 <code cpp> <code cpp>
 // Create our ball's body with 100 mass  and infinite moment  ​ // Create our ball's body with 100 mass  and infinite moment  ​
Línea 29: Línea 31:
 cpSpaceAddBody(space,​ ballBody);  ​ cpSpaceAddBody(space,​ ballBody);  ​
 </​code>​ </​code>​
 +
 +=== Python ===
 +
 ===== Movement ===== ===== Movement =====
 The main method of changing things on Chipmunk, just like in the real world, is to use and apply Forces. A force is a vector , you tell the strength along the XX and YY axis. To help working with vectors, Chipmunk comes with a library called cpVect that allows you to do the most common operations like multiplying vectors or projecting two vectors. The main method of changing things on Chipmunk, just like in the real world, is to use and apply Forces. A force is a vector , you tell the strength along the XX and YY axis. To help working with vectors, Chipmunk comes with a library called cpVect that allows you to do the most common operations like multiplying vectors or projecting two vectors.
wiki2/chipmunk.1418398513.txt.gz · Última modificación: 2020/05/09 09:24 (editor externo)