文件名称:trversebody
介绍说明--下载内容均来自于网络,请自行研究使用
Android实例化物理世界的范围对象,遍历Body,通过world.getBodyCount()得到循环遍历Body的次数,final float RATE = 30 // 屏幕到现实世界的比例 30px:1m
World world // 声明一个物理世界对象
AABB aabb // 声明一个物理世界的范围对象
Vec2 gravity // 声明一个重力向量对象
float timeStep = 1f / 60f // 物理世界模拟的的频率
int iterations = 10 // 迭代值,迭代越大模拟越精确,但性能越低-Android instantiate the object scope of the physical world, traversing Body, by world.getBodyCount () to get the number of loops through the Body, the proportion of final float RATE = 30 //screen to the real world 30px: 1m World world //declare a physical world objects AABB aabb //declare a range of physical world objects Vec2 gravity //declare a gravity vector objects float timeStep = 1f/60f //physical world simulation frequency int iterations = 10 //iteration values, The larger the more accurate simulation iterations, but the lower the performance
World world // 声明一个物理世界对象
AABB aabb // 声明一个物理世界的范围对象
Vec2 gravity // 声明一个重力向量对象
float timeStep = 1f / 60f // 物理世界模拟的的频率
int iterations = 10 // 迭代值,迭代越大模拟越精确,但性能越低-Android instantiate the object scope of the physical world, traversing Body, by world.getBodyCount () to get the number of loops through the Body, the proportion of final float RATE = 30 //screen to the real world 30px: 1m World world //declare a physical world objects AABB aabb //declare a range of physical world objects Vec2 gravity //declare a gravity vector objects float timeStep = 1f/60f //physical world simulation frequency int iterations = 10 //iteration values, The larger the more accurate simulation iterations, but the lower the performance
(系统自动生成,下载前可以参看下载内容)
下载文件列表
(遍历Body)\TraverseBody\.classpath
..........\............\.project
..........\............\.settings\org.eclipse.jdt.core.prefs
..........\............\AndroidManifest.xml
..........\............\bin\classes.dex
..........\............\...\.om\tb\MainActivity.class
..........\............\...\...\..\MySurfaceView.class
..........\............\...\...\..\R$attr.class
..........\............\...\...\..\R$drawable.class
..........\............\...\...\..\R$layout.class
..........\............\...\...\..\R$string.class
..........\............\...\...\..\R.class
..........\............\...\resources.ap_
..........\............\...\TraverseBody.apk
..........\............\default.properties
..........\............\gen\com\tb\R.java
..........\............\lib\jbox2d.jar
..........\............\proguard.cfg
..........\............\res\drawable-hdpi\icon.png
..........\............\...\.........ldpi\icon.png
..........\............\...\.........mdpi\icon.png
..........\............\...\layout\main.xml
..........\............\...\values\strings.xml
..........\............\src\com\tb\MainActivity.java
..........\............\...\...\..\MySurfaceView.java
..........\............\bin\com\tb
..........\............\gen\com\tb
..........\............\src\com\tb
..........\............\bin\com
..........\............\gen\com
..........\............\res\drawable-hdpi
..........\............\...\drawable-ldpi
..........\............\...\drawable-mdpi
..........\............\...\layout
..........\............\...\values
..........\............\src\com
..........\............\.settings
..........\............\assets
..........\............\bin
..........\............\gen
..........\............\lib
..........\............\res
..........\............\src
..........\TraverseBody
(遍历Body)