Giter Site home page Giter Site logo

jbox2dproject's Introduction

Jbox2dProject

思路

  1. 创建一个JboxImpl类,专门用于管理刚体和世界的创建和逻辑计算
  2. 自定义一个view,这里为了方便直接继承FrameLayout,并且在真实屏幕中将JboxImpl中计算出刚体运动的坐标绑定给真实的view(也就是这里的image),根据重力感应不停的回调绘制。
  3. MainActivity中做重力感应的注册,回调的变化传递到jboxView进行界面重绘。

来一张图片看看 image

jbox2dproject's People

Contributors

kakaandfigo avatar

Stargazers

 avatar 腊肉爱蕨菜 avatar Zane avatar fanjinhao avatar dbaspider avatar  avatar  avatar Su Yimin avatar 侯同学 avatar 张宇 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.