CDN加速镜像 | 设为首页 | 加入收藏夹
当前位置: 首页 资源下载 源码下载 通讯/手机编程 android开发

文件名称:bodycollision

  • 所属分类:
  • 标签属性:
  • 上传时间:
    2014-04-16
  • 文件大小:
    336.61kb
  • 已下载:
    0次
  • 提 供 者:
  • 相关连接:
  • 下载说明:
    别用迅雷下载,失败请重下,重下不扣分!

介绍说明--下载内容来自于网络,使用问题请自行百度

(Body碰撞监听),碰撞筛选器比监听器更加的具有扩展性,可以在筛选器中实现监听器的功能;但是由于自由度太大,一般不推荐使用final float RATE = 30 // 屏幕到现实世界的比例 30px:1m

  World world // 声明一个物理世界对象

  AABB aabb // 声明一个物理世界的范围对象

  Vec2 gravity // 声明一个重力向量对象

  float timeStep = 1f / 60f // 物理世界模拟的的频率

  int iterations = 10 // 迭代值,迭代越大模拟越精确,但性能越低

  // --->>给第一个Body赋予力

  Body body1, body2

  Shape 里的 m_isSensor 属性表示发生碰撞但是不产生碰撞效果

  public void result(ContactResult arg0) {

  // 发生碰撞(有新的接触点被监听到)会调用此函数

  // 持续碰撞时也会调用此函数

  }-(Body Collision listening), collision filters more scalable than the listener, the listener function can be achieved in the filter However, due to the degree of freedom too, is generally not recommended final float RATE = 30 //screen to the proportion of 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 //Physics world analog frequency int iterations = 10 //iteration values, the greater the iterative simulation more accurate, but the lower the performance//--- > > gives force to the first Body Body body1, body2 Shape Properties in the m_isSensor said the collision but no collision effects public void result (ContactResult arg0) {//collision (new points of contact are listening to) will call this function// when the collision will continue to call this function}
(系统自动生成,下载前可以参看下载内容)

下载文件列表

(Body碰撞监听)/BodyCollision/.classpath
(Body碰撞监听)/BodyCollision/.project
(Body碰撞监听)/BodyCollision/AndroidManifest.xml
(Body碰撞监听)/BodyCollision/bin/BodyCollision.apk
(Body碰撞监听)/BodyCollision/bin/classes.dex
(Body碰撞监听)/BodyCollision/bin/com/bc/MainActivity.class
(Body碰撞监听)/BodyCollision/bin/com/bc/MyCircle.class
(Body碰撞监听)/BodyCollision/bin/com/bc/MySurfaceView.class
(Body碰撞监听)/BodyCollision/bin/com/bc/R$attr.class
(Body碰撞监听)/BodyCollision/bin/com/bc/R$drawable.class
(Body碰撞监听)/BodyCollision/bin/com/bc/R$layout.class
(Body碰撞监听)/BodyCollision/bin/com/bc/R$string.class
(Body碰撞监听)/BodyCollision/bin/com/bc/R.class
(Body碰撞监听)/BodyCollision/bin/resources.ap_
(Body碰撞监听)/BodyCollision/default.properties
(Body碰撞监听)/BodyCollision/gen/com/bc/R.java
(Body碰撞监听)/BodyCollision/lib/jbox2d.jar
(Body碰撞监听)/BodyCollision/proguard.cfg
(Body碰撞监听)/BodyCollision/res/drawable-hdpi/icon.png
(Body碰撞监听)/BodyCollision/res/drawable-ldpi/icon.png
(Body碰撞监听)/BodyCollision/res/drawable-mdpi/icon.png
(Body碰撞监听)/BodyCollision/res/layout/main.xml
(Body碰撞监听)/BodyCollision/res/values/strings.xml
(Body碰撞监听)/BodyCollision/src/com/bc/MainActivity.java
(Body碰撞监听)/BodyCollision/src/com/bc/MyCircle.java
(Body碰撞监听)/BodyCollision/src/com/bc/MySurfaceView.java
(Body碰撞监听)/BodyCollision/bin/com/bc
(Body碰撞监听)/BodyCollision/gen/com/bc
(Body碰撞监听)/BodyCollision/src/com/bc
(Body碰撞监听)/BodyCollision/bin/com
(Body碰撞监听)/BodyCollision/gen/com
(Body碰撞监听)/BodyCollision/res/drawable-hdpi
(Body碰撞监听)/BodyCollision/res/drawable-ldpi
(Body碰撞监听)/BodyCollision/res/drawable-mdpi
(Body碰撞监听)/BodyCollision/res/layout
(Body碰撞监听)/BodyCollision/res/values
(Body碰撞监听)/BodyCollision/src/com
(Body碰撞监听)/BodyCollision/assets
(Body碰撞监听)/BodyCollision/bin
(Body碰撞监听)/BodyCollision/gen
(Body碰撞监听)/BodyCollision/lib
(Body碰撞监听)/BodyCollision/res
(Body碰撞监听)/BodyCollision/src
(Body碰撞监听)/BodyCollision
(Body碰撞监听)

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 搜珍网是交换下载平台,只提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度。更多...
  • 本站已设置防盗链,请勿用迅雷、QQ旋风等下载软件下载资源,下载后用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或换浏览器;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*快速评论: 推荐 一般 有密码 和说明不符 不是源码或资料 文件不全 不能解压 纯粹是垃圾
*内  容:
*验 证 码:
搜珍网 www.dssz.com